]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
clockevents: Leave the broadcast device in shutdown mode when not needed
authorSuresh Siddha <suresh.b.siddha@intel.com>
Sat, 5 Nov 2011 00:18:21 +0000 (17:18 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 15 Feb 2012 14:23:09 +0000 (15:23 +0100)
commit77b0d60c5adf39c74039e2142a1d3cd1e4d53799
tree9c009072825bedc6423df543b6b8e12a342cfeb7
parent7ada1dd62804ca9ce1cb8666c6e563cd92fa50c1
clockevents: Leave the broadcast device in shutdown mode when not needed

Platforms with Always Running APIC Timer doesn't use the broadcast timer
but the kernel is leaving the broadcast timer (HPET in this case)
in oneshot mode.

On these platforms, before the switch to oneshot mode, broadcast device is
actually in shutdown mode. Code checks for empty tick_broadcast_mask and
avoids going into the periodic mode.

During switch to oneshot mode, add the same tick_broadcast_mask checks in the
tick_broadcast_switch_to_oneshot() and avoid the broadcast device going into
the oneshot mode.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: john stultz <johnstul@us.ibm.com>
Cc: venki@google.com
Link: http://lkml.kernel.org/r/1320452301.15071.16.camel@sbsiddha-desk.sc.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/tick-broadcast.c