【发布时间】:2018-11-01 03:21:27
【问题描述】:
在我的内核的 dts 文件中,我有:
thermal-zones {
cpu0_thermal: cpu0-thermal {
thermal-sensors = <&tmuctrl_0>;
polling-delay-passive = <1000>;
polling-delay = <1000>;
trips {
cpu_alert0: cpu-alert-0 {
temperature = <100000>;
hysteresis = <1000>;
type = "active";
};
cpu_alert1: cpu-alert-1 {
temperature = <110000>;
hysteresis = <1000>;
type = "passive";
};
cpu_alert2: cpu-alert-2 {
temperature = <120000>;
hysteresis = <1000>;
type = "passive";
};
cpu-crit-0 {
temperature = <130000>;
hysteresis = <1000>;
type = "critical";
};
};
cooling-maps {
map0 {
trip = <&cpu_alert0>;
cooling-device = <&cpu0 1 1>;
};
map1 {
trip = <&cpu_alert1>;
cooling-device = <&cpu0 4 4>;
};
map2 {
trip = <&cpu_alert2>;
cooling-device = <&cpu0 10 10>;
};
};
};
};
似乎被动意味着只使用CPU,主动意味着使用任何风扇冷却设备。
我的问题:这两个数字在 CPU 的冷却装置中代表什么?
https://www.kernel.org/doc/Documentation/devicetree/bindings/thermal/thermal.txt 说:“冷却状态由单个无符号整数表示,其中较大的数字意味着更大的散热。”
但是 1、4 和 10 是什么?仅当 cpufreq 按需提供时才适用吗?如何计算“冷却”频率? DTS 的其他部分是否与这些值相关联?
【问题讨论】:
标签: linux-kernel dts heat