]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
tick/xen: Provide and use tick_suspend_local() and tick_resume_local()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2015 12:11:04 +0000 (13:11 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 1 Apr 2015 12:23:00 +0000 (14:23 +0200)
commitf46481d0a7cb942b84145acb80ad43bdb1ff8eb4
tree93ef806641010b07d8405b144203d1e862d034d7
parent080873ce2d1abd8c0a2b8c87bfa0762546a6b713
tick/xen: Provide and use tick_suspend_local() and tick_resume_local()

Xen calls on every cpu into tick_resume() which is just wrong.
tick_resume() is for the syscore global suspend/resume
invocation. What XEN really wants is a per cpu local resume
function.

Provide a tick_resume_local() function and use it in XEN.

Also provide a complementary tick_suspend_local() and modify
tick_unfreeze() and tick_freeze(), respectively, to use the
new local tick resume/suspend functions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[ Combined two patches, rebased, modified subject/changelog. ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1698741.eezk9tnXtG@vostro.rjw.lan
[ Merged to latest timers/core. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/xen/suspend.c
include/linux/tick.h
kernel/time/tick-broadcast.c
kernel/time/tick-common.c
kernel/time/tick-internal.h