summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge2008-07-09 00:06:56 +0200
committerIngo Molnar2008-07-16 11:01:31 +0200
commit4560a2947e32670fc6ede108c2b032c396180649 (patch)
tree9fa2a4b8dee382065f1a127d123aaaba89436d2d /arch/x86/xen
parentxen64: use arbitrary_virt_to_machine for xen_set_pmd (diff)
downloadkernel-qcow2-linux-4560a2947e32670fc6ede108c2b032c396180649.tar.gz
kernel-qcow2-linux-4560a2947e32670fc6ede108c2b032c396180649.tar.xz
kernel-qcow2-linux-4560a2947e32670fc6ede108c2b032c396180649.zip
xen: set num_processors
Someone's got to do it. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Stephen Tweedie <sct@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/smp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
index 800bb2191e2a..8310ca0ea375 100644
--- a/arch/x86/xen/smp.c
+++ b/arch/x86/xen/smp.c
@@ -155,8 +155,10 @@ static void __init xen_fill_possible_map(void)
for (i = 0; i < NR_CPUS; i++) {
rc = HYPERVISOR_vcpu_op(VCPUOP_is_up, i, NULL);
- if (rc >= 0)
+ if (rc >= 0) {
+ num_processors++;
cpu_set(i, cpu_possible_map);
+ }
}
}