topology_update_hw_pressure(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

topology_update_hw_pressure β€” Update HW pressure for CPUs πŸ’… and yes bestie, this one is from the Kernel API Manual, so you know it's kernel-business.


✨ SYNOPSIS ✨

void topology_update_hw_pressure (const struct cpumask *cpus , unsigned
long capped_freq );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpus β€” the related CPUs for which capacity has been reduced, no cap. 🫢
  • capped_freq β€” the maximum allowed frequency that CPUs can run at. slay. ⚑

πŸ’… DESCRIPTION πŸ’…

okay so this function updates the value of HW pressure for all cpus in the mask. The cpumask should include all (online+offline) affected CPUs, to avoid operating on stale data when hot-plug is used for some CPUs. literally include the offline girlies too, bestie. πŸ’–

capped_freq reflects the currently allowed max CPUs frequency due to HW capping. It might be also a boost frequency value, which is bigger than the internal 'capacity_freq_ref' max frequency. In such case the pressure value should simply be removed, since this is an indication that there is no HW throttling. πŸ¦‹βœ¨

and ngl, capped_freq must be provided in kHz. not vibes, not MHz, kHz. periodt. πŸ’€πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/base/arch_topology.c β€” go peek at the kernel file, iykyk. πŸ“‚πŸ’œ

✨ cute sign-off: source/version ./drivers/base Β· date October 2026 Β· page topology_update_hw_pressure(9) β€” bye bestie, go slay that kernel work πŸ’–πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from