mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
x86/xen/pv: Pretend that it found SMP configuration
Unlike all other SMP configuration "parsers" XEN/PV does not set smp_found_config which is inconsistent and prevents doing proper decision logic based on this flag. Make XEN/PV pretend that it found SMP configuration. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Tested-by: Michael Kelley <mikelley@microsoft.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
This commit is contained in:
parent
81287ad65d
commit
24889a3a53
1 changed files with 2 additions and 1 deletions
|
@ -182,7 +182,8 @@ static void __init _get_smp_config(unsigned int early)
|
||||||
if (subtract)
|
if (subtract)
|
||||||
set_nr_cpu_ids(nr_cpu_ids - subtract);
|
set_nr_cpu_ids(nr_cpu_ids - subtract);
|
||||||
#endif
|
#endif
|
||||||
|
/* Pretend to be a proper enumerated system */
|
||||||
|
smp_found_config = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init xen_pv_smp_prepare_boot_cpu(void)
|
static void __init xen_pv_smp_prepare_boot_cpu(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue