cpu_up not called for boot cpu
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?
Quoted 5 lines · Keith Owens
cpu_up()is only called for secondary cpus, not for the boot cpu. That means that code hooked into thecpu_chainnotifier 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().
Quoted 5 lines · Keith Owens
cpu_up()is only called for secondary cpus, not for the boot cpu. That means that code hooked into thecpu_chainnotifier 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