Avoid spurious timer activations in migrate_timer().

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-04-22 10:37:24 +01:00
1 parent de4294617e
commit ac9595600a
1 file changed
+7 -4
+7 -4
View File
@@ -251,12 +251,15 @@ void migrate_timer(struct timer *timer, unsigned int new_cpu)
}
if ( active_timer(timer) )
{
__stop_timer(timer);
timer->cpu = new_cpu;
if ( likely(!timer->killed) )
timer->cpu = new_cpu;
__add_timer(timer);
}
else
{
timer->cpu = new_cpu;
}
spin_unlock(&timers[old_cpu].lock);
spin_unlock_irqrestore(&timers[new_cpu].lock, flags);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.