dt_has_supported_hw(9)
π dt_has_supported_hw(9) π
okay so bestie, this page lives in the Kernel API Manual and it's about a tiny bool helper that checks the OPP/DT situation. It's giving βsmall function, big main character energyβ β¨
β¨ NAME β¨
dt_has_supported_hwβ Check if any OPPs useopp-supported-hw
π¦ SYNOPSIS π¦
bool dt_has_supported_hw (void );
π ARGUMENTS π
voidβ no arguments. literally none, bestie π«Ά
πΈ DESCRIPTION πΈ
So here's the tea: if we ask the cpufreq framework to use the opp-supported-hw feature, it will ignore every OPP node without that DT property. every OPP node without it gets ignored, no cap.
And if none of the OPPs have it? π The driver will fail probing, due to the lack of OPPs. That's the whole warning vibe β don't come for this helper unless you're ready for the DT property situation.
It returns true if we have at least one OPP with the opp-supported-hw property. That's it. That's the check. slay β
π₯ SEE ALSO π₯
- Kernel file
./drivers/cpufreq/sun50i-cpufreq-nvmem.c sun50i_cpufreq_get_efuse(9)
okay bye bestie, stay iconic π β this came from source/version ./drivers/cpufreq, dated October 2026. mwah π
π¦ 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