]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xen: Resume PMU from non-atomic context
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 2 Dec 2015 17:10:48 +0000 (12:10 -0500)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 2 Dec 2015 17:17:17 +0000 (17:17 +0000)
commitde0afc9bdeeadaa998797d2333c754bf9f4d5dcf
tree7589aa1fb73dfe2ac28e748a9cf4f68391023daf
parent3de88d622fd68bd4dbee0f80168218b23f798fd0
xen: Resume PMU from non-atomic context

Resuming PMU currently triggers a warning from ___might_sleep() (assuming
CONFIG_DEBUG_ATOMIC_SLEEP is set) when xen_pmu_init() allocates GFP_KERNEL
page because we are in state resembling atomic context.

Move resuming PMU to xen_arch_resume() which is called in regular context.
For symmetry move suspending PMU to xen_arch_suspend() as well.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: <stable@vger.kernel.org> # 4.3
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/suspend.c