Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux kernel 内核热区在dts文件中是什么意思?_Linux Kernel_Dts_Heat - Fatal编程技术网

Linux kernel 内核热区在dts文件中是什么意思?

Linux kernel 内核热区在dts文件中是什么意思?,linux-kernel,dts,heat,Linux Kernel,Dts,Heat,在内核的dts文件中,我有: thermal-zones { cpu0_thermal: cpu0-thermal { thermal-sensors = <&tmuctrl_0>; polling-delay-passive = <1000>; polling-delay = <1000>; trips { cpu_alert0: cpu-alert-0

在内核的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>;
            };
        };
    };
};
热区{
cpu0_热:cpu0热{
热传感器=;
轮询延迟被动=;
轮询延迟=;
旅行{
cpu\U警报0:cpu-alert-0{
温度=;
滞后=;
type=“活动”;
};
cpu\U警报1:cpu-alert-1{
温度=;
滞后=;
type=“被动”;
};
cpu_警报2:cpu-alert-2{
温度=;
滞后=;
type=“被动”;
};
cpu-crit-0{
温度=;
滞后=;
type=“临界”;
};
};
冷却图{
map0{
行程=;
冷却装置=;
};
map1{
行程=;
冷却装置=;
};
map2{
行程=;
冷却装置=;
};
};
};
};
似乎被动意味着只使用CPU,主动意味着使用任何风扇冷却设备

我的问题:这两个数字在CPU的冷却设备中代表什么

说:“冷却状态是指单个无符号整数,其中较大的数字意味着更大的散热。”


但是1、4和10是什么?这是否仅适用于ondemand的cpufreq?如何计算“冷却”频率?DTS是否还有其他部分与这些值相关联?

我不完全确定它是通用的还是特定于我的ARM设备,但我通过阅读提交注释发现,数字(1、4、10)仅在ondemand模式下对应于CPU的节流阀。在我的特殊情况下,这些数字代表以100MHz为单位的油门测量值。因此,10表示CPU的节流频率比其最大频率低1GHz。

在DTS冷却设备中=用于表示与热区触发点绑定的冷却设备的状态。在您的情况下,冷却设备是cpu,这意味着您的热区触发点与cpu绑定,dts中的1 1表示节流状态。所有这些都可以从sysfs接口读取,也可以从用户空间读取。有关详细信息,请浏览以下链接: