em_dev_regis...pd_no_update(9)
π em_dev_register_pd_no_update β bestie, let's talk perf domains β¨
Okay so real talk: you're reading the em_dev_regis...pd_no_update(9) page from the Kernel API Manual, section 9, and honestly? This one is a little niche but it slaps. It's the chill cousin of the regular perf-domain registration β the one that doesn't go touching CPU capacities behind your back. π«Ά
β¨ SYNOPSIS β¨
int em_dev_register_pd_no_update (struct device *dev , unsigned int
nr_states , const struct em_data_callback *cb , const cpumask_t *cpus ,
bool microwatts );
That's the whole signature, no cap. It returns an int, and yes you should check it. π
πΈ ARGUMENTS πΈ
devβ the device you're registering the PD for. Like, the main character of this whole operation. πnr_statesβ how many performance states live inside your shiny new PD. Count 'em, bestie.cbβ the callback functions that populate the energy model. This is where you tell the kernel what the vibes (power numbers) actually are. β¨cpusβ the CPUs to include in the new PD. Mandatory ifdevis a CPU device β like, do not skip this one, fr fr. πmicrowattsβ aboolthat says whether or not the power values in the EM will be in uW. Lowkey important for your units. π
π¦ DESCRIPTION π¦
So here's the tea: this function is basically em_dev_register_perf_domain, except it does not trigger a CPU capacity update after registering the PD β even if dev is a CPU device. That's the entire personality. No sneaky capacity changes, just registration and go. π
If you wanted the capacity update to happen, this is not the function for you, bestie. Go read the sibling page.
π SEE ALSO π
Everything lives in the kernel file ./kernel/power/energy_model.c, and while you're there, go say hi to all these icons:
em_table_free(9)em_table_alloc(9)em_dev_compute_costs(9)em_dev_update_perf_domain(9)em_pd_get(9)em_cpu_get(9)em_dev_register_perf_domain(9)em_dev_unregister_perf_domain(9)em_adjust_cpu_capacity(9)em_dev_update_chip_binning(9)em_update_performance_limits(9)
Kernel source location: ./kernel/power Β· Dated October 2026 Β· Section 9, Kernel API Manual
That's the whole page, bestie β go register some perf domains responsibly. 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