]> git.baikalelectronics.ru Git - kernel.git/commit
timers: Logic to move non pinned timers
authorArun R Bharadwaj <arun@linux.vnet.ibm.com>
Thu, 16 Apr 2009 06:46:41 +0000 (12:16 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 13 May 2009 14:52:42 +0000 (16:52 +0200)
commitfa3c9c5a8262aa8dd3a96fd1692848fee2d0b262
tree4e6af5185309d7abe49a8fa19634ea38582381e4
parentc0c2495b02caa813a59fe0023869940aaeefcd47
timers: Logic to move non pinned timers

* Arun R Bharadwaj <arun@linux.vnet.ibm.com> [2009-04-16 12:11:36]:

This patch migrates all non pinned timers and hrtimers to the current
idle load balancer, from all the idle CPUs. Timers firing on busy CPUs
are not migrated.

While migrating hrtimers, care should be taken to check if migrating
a hrtimer would result in a latency or not. So we compare the expiry of the
hrtimer with the next timer interrupt on the target cpu and migrate the
hrtimer only if it expires *after* the next interrupt on the target cpu.
So, added a clockevents_get_next_event() helper function to return the
next_event on the target cpu's clock_event_device.

[ tglx: cleanups and simplifications ]

Signed-off-by: Arun R Bharadwaj <arun@linux.vnet.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/clockchips.h
include/linux/sched.h
kernel/hrtimer.c
kernel/sched.c
kernel/time/clockevents.c
kernel/timer.c