配置热区
为了使您的产品或应用达到最佳性能,自定义和控制其热行为非常重要。您可以为新添加的外部热敏电阻配置新的热区,以控制 Qualcomm Linux 的表面温度。
以下示例代码展示了如何使用设备树配置热区。
例如,监控 50°C 的温度阈值,并对 CPU 冷却设备应用缓解措施。
注意: 默认情况下,系统配置逐步(stepwise)热调节器。
特定于热区的参数在 Linux Kernel Thermal Zones Documentation 中进行了说明。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 QLI Version 2.1 is now live ! Switch to new version to check out the latest content
thermal-zones {
<thermal zone name> {
polling-delay-passive = <2000>;
polling-delay = <0>;
thermal-sensors = < thermal sensor phandle and sensor specifier used to monitor this thermal zone>;
trips {
trip0: apc-trip {
temperature = <50000>; /*Threshold to trigger thermal mitigation */
hysteresis = <2000>; /*The offset of clear threshold, the clear threshold is 48000 */
};
};
cooling-maps {
map0 {
trip = <&trip0>;
cooling-device = <&cpufreq-cpu4 THERMAL_NO_LIMIT 5>; /* Reduce Gold cluster CPU fmax freq by 5 levels */
};
};
};
};
