STRUCT TEO_CPU(9)
π struct teo_cpu β okay bestie, listen π
So this is the Kernel API Manual page for struct teo_cpu, and it's literally the CPU data that the TEO cpuidle governor runs on. Like, this struct is the main character of idle-time decision-making, no cap. π«Ά
β¨ NAME β¨
struct teo_cpu β the CPU data used by the TEO cpuidle governor, periodt. π
π¦ SYNOPSIS π¦
struct teo_cpu {
s64 sleep_length_ns;
struct teo_bin state_bins[CPUIDLE_STATE_MAX];
unsigned int total;
unsigned int total_tick;
unsigned int tick_intercepts;
unsigned int short_idles;
bool tick_wakeup;
};
Heads up, the original literally has that extra space before the closing }; β yes we're keeping it, character for character, don't come for me π
π Members π
Okay so these are the fields, and every single one of them matters, so let's go:
sleep_length_nsβ the time till the closest timer event, measured at the moment the selection happens. Basically "how long until something wakes us up", in nanoseconds, iconic. β°state_binsβ the idle state data bins for this CPU. The bins! The little buckets! π§Ίtotalβ the grand total of the"intercepts"and"hits"metrics across, like, all the bins combined. Big number energy. π₯total_tickβ wakeups that came from the scheduler tick. π°οΈtick_interceptsβ the"intercepts"that happened beforeTICK_NSEC. Catching them early, slay. β¨short_idlesβ wakeups that happened after short idle periods. Short but sweet. πtick_wakeupβ set if the last wakeup was caused by the scheduler tick. Just a lilbooldoing its job. π
π SEE ALSO π
Kernel file ./drivers/cpuidle/governors/teo.c (yes, that whole thing is part of this line), plus the whole friend group: teo-description(9), struct teo_bin(9), teo_update(9), teo_find_shallower_state(9), teo_select(9), teo_reflect(9), teo_enable_device(9). Go read them, iykyk π
Okay that's the whole page!! Mwah π This one lives in ./drivers/cpuidle/governors, and the version/date vibes are October 2026 β so like, future slay. Bye bestie, go read a kernel file π§ββοΈ
π¦ 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