Skip to content

Commit 6194612

Browse files
vlsunilpalmer-dabbelt
authored andcommitted
RISC-V: smpboot: Create wrapper setup_smp()
setup_smp() currently assumes DT-based platforms. To enable ACPI, first make this a wrapper function and move existing code to a separate DT-specific function. Signed-off-by: Sunil V L <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent e6b9d8e commit 6194612

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arch/riscv/kernel/smpboot.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
7070
}
7171
}
7272

73-
void __init setup_smp(void)
73+
static void __init of_parse_and_init_cpus(void)
7474
{
7575
struct device_node *dn;
7676
unsigned long hart;
@@ -116,6 +116,11 @@ void __init setup_smp(void)
116116
}
117117
}
118118

119+
void __init setup_smp(void)
120+
{
121+
of_parse_and_init_cpus();
122+
}
123+
119124
static int start_secondary_cpu(int cpu, struct task_struct *tidle)
120125
{
121126
if (cpu_ops[cpu]->cpu_start)

0 commit comments

Comments
 (0)