diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-05-19 16:19:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-05 11:15:57 -0700 |
commit | 11c8bbaaa1a47d0362d1156db2d916c39d46780c (patch) | |
tree | b80d55452f909da291ca0d7de3301221b476cb70 /drivers/xen | |
parent | 6fef5c9ad77749e70e1b44373e85ab980dc38f10 (diff) | |
download | lwn-11c8bbaaa1a47d0362d1156db2d916c39d46780c.tar.gz lwn-11c8bbaaa1a47d0362d1156db2d916c39d46780c.zip |
xen: ensure timer tick is resumed even on CPU driving the resume
commit cd52e17ea8278f8449b6174a8e5ed439a2e44ffb upstream.
The core suspend/resume code is run from stop_machine on CPU0 but
parts of the suspend/resume machinery (including xen_arch_resume) are
run on whichever CPU happened to schedule the xenwatch kernel thread.
As part of the non-core resume code xen_arch_resume is called in order
to restart the timer tick on non-boot processors. The boot processor
itself is taken care of by core timekeeping code.
xen_arch_resume uses smp_call_function which does not call the given
function on the current processor. This means that we can end up with
one CPU not receiving timer ticks if the xenwatch thread happened to
be scheduled on CPU > 0.
Use on_each_cpu instead of smp_call_function to ensure the timer tick
is resumed everywhere.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/xen')
0 files changed, 0 insertions, 0 deletions