aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/sysctl.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-14 17:07:52 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-14 17:07:52 +0100
commit27c31d386746bea3daa5b3733c9f986a9c3cccc3 (patch)
tree64ef675ed9b4c0836ab9076b7280e88a64f5bb16 /xen/arch/x86/sysctl.c
parent2e4146ddc277d2ddd861646b8b1ba83182eb84bb (diff)
downloadxen-27c31d386746bea3daa5b3733c9f986a9c3cccc3.tar.gz
xen-27c31d386746bea3daa5b3733c9f986a9c3cccc3.tar.bz2
xen-27c31d386746bea3daa5b3733c9f986a9c3cccc3.zip
Move cpu hotplug routines into common cpu.c file.
Also simplify the locking (reverting to use if spin_trylock, as returning EBUSY/EAGAIN seems unavoidable after all). In particular this should continue to ensure that stop_machine_run() does not have cpu_online_map change under its feet. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/sysctl.c')
-rw-r--r--xen/arch/x86/sysctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/sysctl.c b/xen/arch/x86/sysctl.c
index 4ffc76b145..5d22c5acb5 100644
--- a/xen/arch/x86/sysctl.c
+++ b/xen/arch/x86/sysctl.c
@@ -25,6 +25,7 @@
#include <asm/processor.h>
#include <asm/numa.h>
#include <xen/nodemask.h>
+#include <xen/cpu.h>
#include <xsm/xsm.h>
#define get_xen_guest_handle(val, hnd) do { val = (hnd).p; } while (0)