Commit 0baf4d48 authored by Thomas Gleixner's avatar Thomas Gleixner

x86/xen/smp_pv: Prepare for separate mpparse callbacks

Provide a wrapper around the existing function and fill the new callbacks
in.

No functional change as the new callbacks are not yet operational.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Tested-by: default avatarMichael Kelley <mhklinux@outlook.com>
Tested-by: default avatarSohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240212154639.745028043@linutronix.de

parent 30c92869
...@@ -185,6 +185,11 @@ static void __init _get_smp_config(unsigned int early) ...@@ -185,6 +185,11 @@ static void __init _get_smp_config(unsigned int early)
smp_found_config = 1; smp_found_config = 1;
} }
static void __init xen_pv_smp_config(void)
{
_get_smp_config(false);
}
static void __init xen_pv_smp_prepare_boot_cpu(void) static void __init xen_pv_smp_prepare_boot_cpu(void)
{ {
BUG_ON(smp_processor_id() != 0); BUG_ON(smp_processor_id() != 0);
...@@ -455,6 +460,8 @@ void __init xen_smp_init(void) ...@@ -455,6 +460,8 @@ void __init xen_smp_init(void)
smp_ops = xen_smp_ops; smp_ops = xen_smp_ops;
/* Avoid searching for BIOS MP tables */ /* Avoid searching for BIOS MP tables */
x86_init.mpparse.find_mptable = x86_init_noop; x86_init.mpparse.find_mptable = x86_init_noop;
x86_init.mpparse.get_smp_config = _get_smp_config; x86_init.mpparse.early_parse_smp_cfg = x86_init_noop;
x86_init.mpparse.parse_smp_cfg = xen_pv_smp_config;
x86_init.mpparse.get_smp_config = _get_smp_config;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment