]> Git Repo - linux.git/commit
clockevents: tTack broadcast device mode change in tick_broadcast_switch_to_oneshot()
authorSuresh Siddha <[email protected]>
Mon, 9 Apr 2012 22:41:44 +0000 (15:41 -0700)
committerThomas Gleixner <[email protected]>
Tue, 10 Apr 2012 09:42:07 +0000 (11:42 +0200)
commitfa4da365bc7772c2cd6d5405bdf151612455f957
treea688173e5ba7428e934dee1ea2905c2bbe92ef50
parent9886f444129171569461d8c39983e16f4871e3b4
clockevents: tTack broadcast device mode change in tick_broadcast_switch_to_oneshot()

In the commit 77b0d60c5adf39c74039e2142a1d3cd1e4d53799,
"clockevents: Leave the broadcast device in shutdown mode when not needed",
we were bailing out too quickly in tick_broadcast_switch_to_oneshot(),
with out tracking the broadcast device mode change to 'TICKDEV_MODE_ONESHOT'.

This breaks the platforms which need broadcast device oneshot services during
deep idle states. tick_broadcast_oneshot_control() thinks that it is
in periodic mode and fails to take proper decisions based on the
CLOCK_EVT_NOTIFY_BROADCAST_[ENTER, EXIT] notifications during deep
idle entry/exit.

Fix this by tracking the broadcast device mode as 'TICKDEV_MODE_ONESHOT',
before leaving the broadcast HW device in shutdown mode if there are no active
requests for the moment.

Reported-and-tested-by: Santosh Shilimkar <[email protected]>
Signed-off-by: Suresh Siddha <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
kernel/time/tick-broadcast.c
This page took 0.047186 seconds and 4 git commands to generate.