xen/arm: missing put_cpu in xen_percpu_init
authorJulien Grall <julien.grall@linaro.org>
Mon, 29 Jul 2013 16:06:05 +0000 (17:06 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 5 Aug 2013 11:21:39 +0000 (11:21 +0000)
commit0d7febe58413884f6428143221971618fbf3a47d
tree0082a4a410b4d3c0bc86f055dfc3245ca24ee069
parent088eef2219bd1e8cb82bfcb5b32c1c687aeea6d7
xen/arm: missing put_cpu in xen_percpu_init

When CONFIG_PREEMPT is enabled, Linux will not be able to boot and warn:
[    4.127825] ------------[ cut here ]------------
[    4.133376] WARNING: at init/main.c:699 do_one_initcall+0x150/0x158()
[    4.140738] initcall xen_init_events+0x0/0x10c returned with preemption imbalance

This is because xen_percpu_init uses get_cpu but doesn't have the corresponding
put_cpu.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
arch/arm/xen/enlighten.c