mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 08:18:47 +00:00
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>
This commit is contained in:
parent
ce803e705f
commit
4560a2947e
@ -155,8 +155,10 @@ static void __init xen_fill_possible_map(void)
|
|||||||
|
|
||||||
for (i = 0; i < NR_CPUS; i++) {
|
for (i = 0; i < NR_CPUS; i++) {
|
||||||
rc = HYPERVISOR_vcpu_op(VCPUOP_is_up, i, NULL);
|
rc = HYPERVISOR_vcpu_op(VCPUOP_is_up, i, NULL);
|
||||||
if (rc >= 0)
|
if (rc >= 0) {
|
||||||
|
num_processors++;
|
||||||
cpu_set(i, cpu_possible_map);
|
cpu_set(i, cpu_possible_map);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user