mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
xen: call clock resume notifier on all CPUs
commit f6eafe3665 upstream.
tick_resume() is never called on secondary processors. Presumably this
is because they are offlined for suspend on native and so this is
normally taken care of in the CPU onlining path. Under Xen we keep all
CPUs online over a suspend.
This patch papers over the issue for me but I will investigate a more
generic, less hacky, way of doing to the same.
tick_suspend is also only called on the boot CPU which I presume should
be fixed too.
Signed-off-by: Ian Campbell <Ian.Campbell@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c709210256
commit
0bf7bb9861
@@ -1,4 +1,5 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/clockchips.h>
|
||||
|
||||
#include <xen/interface/xen.h>
|
||||
#include <xen/grant_table.h>
|
||||
@@ -46,7 +47,19 @@ void xen_post_suspend(int suspend_cancelled)
|
||||
|
||||
}
|
||||
|
||||
static void xen_vcpu_notify_restore(void *data)
|
||||
{
|
||||
unsigned long reason = (unsigned long)data;
|
||||
|
||||
/* Boot processor notified via generic timekeeping_resume() */
|
||||
if ( smp_processor_id() == 0)
|
||||
return;
|
||||
|
||||
clockevents_notify(reason, NULL);
|
||||
}
|
||||
|
||||
void xen_arch_resume(void)
|
||||
{
|
||||
/* nothing */
|
||||
smp_call_function(xen_vcpu_notify_restore,
|
||||
(void *)CLOCK_EVT_NOTIFY_RESUME, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user