Hi, Sir
We hope to do offline individual non-boot CPU of SMP cortex-CA7 in Linux.
But CPU0 is always alive.
Could we just save/restore non-boot CPU registers and let the specified CPU power down/wake up ?
Does this result to unstable status to Linux ?
Thank you for your help.
Best Regards,
Alex
offline CPU0 is possible on arm64 kernel,
https://elixir.bootlin.com/linux/v5.14.9/source/arch/arm64/kernel/smp.c#L293
but do not work on arm32 kernel, due to a lot of work is assigned to CPU0 by default, for example interrupt routing is default to CPU0
Thank for the reply.
Is it possible to let Linux run routine tasks on CPU0 after Linux booting ?
We tried cpuidle framework and implemented cpuidle driver.
But after booted up, the time of CPU0 in sleep state is more than some of other CPUs.
We wonder that some routine tasks are not run on CPU0 defaultly.