mcpm_wait_for_cpu_powerdown(9)
π mcpm_wait_for_cpu_powerdown(9) π
okay so bestie, welcome to the Kernel API Manual β this one's about mcpm_wait_for_cpu_powerdown, and it does exactly what it says on the tin: it waits for a specified CPU to halt, and makes sure it is powered off. no cap. π
β¨ NAME β¨
mcpm_wait_for_cpu_powerdown β wait for a specified CPU to halt, and make sure it is powered off π«Ά
πΈ SYNOPSIS πΈ
int mcpm_wait_for_cpu_powerdown (unsigned int cpu , unsigned int cluster );
like, that's the whole vibe. two args, one int back. π
π¦ ARGUMENTS π¦
cpuβ the CPU number, within the given cluster. yes, within the cluster, bestie, don't come at me with a global CPU number. πclusterβ the cluster number for that CPU. it's giving "which friend group is this CPU in" energy. π
π DESCRIPTION π
so here's the tea β β you call this function to make sure that a pending powerdown has actually taken effect, and that the CPU is safely parked, before you go doing non-mcpm operations that may affect that CPU. the example the page gives is kexec trashing the kernel text β which, yeah, that's a whole situation. π
real talk: it is *not* necessary to call this function if all you need is to serialise a pending powerdown with mcpm_cpu_power_up or a wakeup event. so don't be extra for no reason. π
do NOT call this function unless the specified CPU has already called mcpm_cpu_power_down or has committed to doing so. like, fr fr, don't skip that part. π¨
β RETURN β
- zero if the CPU is in a safely parked state π ΏοΈβ¨
- nonzero otherwise (e.g., timeout) π
π SEE ALSO π
kernel file ./arch/arm/include/asm/mcpm.h β and honestly the whole mcpm friend group:
mcpm_is_available(9)mcpm_cpu_power_up(9)mcpm_cpu_power_down(9)mcpm_cpu_suspend(9)mcpm_cpu_powered_up(9)mcpm_platform_register(9)mcpm_sync_init(9)mcpm_loopback(9)
and that's the page, bestie π§π β brought to you by ./arch/arm/include/asm, October 2026, and this absolute icon of a manpage, mcpm_wait_for_cpu_powerdown(9). periodt. π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms