mcpm_cpu_suspend(9)
π€ mcpm_cpu_suspend(9) β bring the calling CPU in a suspended state π€
okay so bestie, this one lives in the Kernel API Manual (section 9, kernel-level, you already know π«Ά). Let's get into it before your CPU literally falls asleep on you.
β¨ SYNOPSIS β¨
void mcpm_cpu_suspend (void );
that's it. that's the whole call. she takes nothing and gives nothing back π
π ARGUMENTS π
voidβ no arguments. literally none. zero. empty set. she's not asking for anything from you π
π¦ DESCRIPTION π¦
So the calling CPU gets suspended. straight up napping. and ngl, this is similar to mcpm_cpu_power_down β like, same energy β except there might be extra platform-specific configuration steps in there to allow an asynchronous wake-up, e.g. with a pending interrupt. so she's not fully down for the count, she's just, like, dozing with one eye open π
If this CPU turns out to be the "last man standing" in the cluster π then the cluster itself may get prepped for power-down too. main character energy forreal.
β οΈ okay this part is important, do NOT skip it: this must be called with interrupts disabled. no cap. if you didn't disable them, that's a you problem and it's giving π
On success, this does not return. like, at all. she's gone π re-entry into the kernel is expected via mcpm_entry_point.
But β and this is the plot twist β it will return if mcpm_platform_register has not been called previously, in which case the caller should take appropriate action. so like, if you skipped the registration era of your life, expect a comeback π
π§ SEE ALSO π§
Kernel file ./arch/arm/include/asm/mcpm.h β go read the source bestie, it's iconic β
mcpm_is_available(9)mcpm_cpu_power_up(9)mcpm_cpu_power_down(9)mcpm_wait_for_cpu_powerdown(9)mcpm_cpu_powered_up(9)mcpm_platform_register(9)mcpm_sync_init(9)mcpm_loopback(9)
kisses bestie, this page came from ./arch/arm/include/asm and she's stamped October 2026 πΈ go put that CPU to sleep (after disabling interrupts, obviously) πβ¨
π¦ 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