Use udev rules to set the CPU online. For memory, we let the kernel bring memory online automatically. This is preferred as udev rule processing might be delayed in a low memory situation, see: https://lwn.net/Articles/668944/
2 lines
85 B
Plaintext
2 lines
85 B
Plaintext
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
|