Skip to contentSkip to conversation

cpu_up not called for boot cpu

DISCUSSION Keith Owens 3 participants 3 messages Jun 28, 2006

lore
Share & tools
lore
#0 lore raw

cpu_up() is only called for secondary cpus, not for the boot cpu. That means that code hooked into the cpu_chain notifier never gets called for the boot cpu, which prevents additional subsystems from taking action for the boot cpu. So how are additional subsystems meant to be initialised for the boot cpu?

#1 lore raw
Quoted 5 lines · Keith Owens

cpu_up() is only called for secondary cpus, not for the boot cpu. That means that code hooked into the cpu_chain notifier never gets called for the boot cpu, which prevents additional subsystems from taking action for the boot cpu. So how are additional subsystems meant to be initialised for the boot cpu?

Looks like you need to add your subsystem's call to do_pre_smp_initcalls().

#2 lore raw
In reply to Keith Owens
Quoted 5 lines · Keith Owens

cpu_up() is only called for secondary cpus, not for the boot cpu. That means that code hooked into the cpu_chain notifier never gets called for the boot cpu, which prevents additional subsystems from taking action for the boot cpu. So how are additional subsystems meant to be initialised for the boot cpu?

They ought to initialize themselves for the already online cpus when they start.

Any other way would make them lose CPUs if they were loaded after the other CPUs are added.

-Andi