mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:26:46 +07:00
powerpc/smp: Add a smp_ops->bringup_up() done callback
This allows us to stop abusing smp_ops->setup_cpu() for cleanup tasks that have to take place after the initial boot time CPU bringup. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
65e646ac50
commit
d72944457b
@ -35,6 +35,7 @@ struct smp_ops_t {
|
||||
int (*probe)(void);
|
||||
void (*kick_cpu)(int nr);
|
||||
void (*setup_cpu)(int nr);
|
||||
void (*bringup_done)(void);
|
||||
void (*take_timebase)(void);
|
||||
void (*give_timebase)(void);
|
||||
int (*cpu_disable)(void);
|
||||
|
@ -553,7 +553,11 @@ void __init smp_cpus_done(unsigned int max_cpus)
|
||||
|
||||
free_cpumask_var(old_mask);
|
||||
|
||||
if (smp_ops && smp_ops->bringup_done)
|
||||
smp_ops->bringup_done();
|
||||
|
||||
dump_numa_cpu_topology();
|
||||
|
||||
}
|
||||
|
||||
int arch_sd_sibling_asym_packing(void)
|
||||
|
Loading…
Reference in New Issue
Block a user