Android系统修改CPU降频温度阈值、修改CPU关内核温度阈值的方法
1、关闭CPU降频温度:
目录:MSM8916.LA.1.1-PostCS-CT-CMCC-r113500.1srcLINUXandroidvendorqcomproprietarythermal-engine
文件:ss-data.c
修改内容:
删除ss_cfgs_8916中的所有设置,如下所示:
static struct setting_info ss_cfgs_8916[] =
{
/*{
.desc = "SS-CPU0-1",
.algo_type = SS_ALGO_TYPE,
.data.ss =
{
.sensor = "cpu0-1",
.device = "cpu",
.sampling_period_ms = 250,
.set_point = 90000,
.set_point_clr = 55000,
},
},
{
.desc = "SS-CPU2-3",
.algo_type = SS_ALGO_TYPE,
.data.ss =
{
.sensor = "cpu2-3",
.device = "cpu",
.sampling_period_ms = 250,
.set_point = 90000,
.set_point_clr = 55000,
},
},
{
.desc = "SS-POPMEM",
.algo_type = SS_ALGO_TYPE,
.data.ss =
{
.sensor = "pop_mem",
.device = "cpu",
.sampling_period_ms = 1000,
.set_point = 56000,
.set_point_clr = 51000,
.time_constant = 2,
},
},*/
};
Android系统修改CPU降频温度阈值、修改CPU关内核温度阈值的方法。适用于高通Android平台。可应用于对设备表面温度无要求的应用场景。系统长期工作后,不会降频和关核,继续维持最高主频工作。燚智能硬件开发网工程师精心编写并验证通过。
2、修改CPU降核温度
目录:MSM8916.LA.1.1-PostCS-CT-CMCC-r113500.1srcLINUXandroidvendorqcomproprietarythermal-engine
文件:thermal_monitor-data-8916.c
修改内容:
在tm_cfgs_8916中增加如下红色处的设置:
static struct setting_info tm_cfgs_8916[] =
{
{
.desc = "CPU3_HOTPLUG_MONITOR",
.algo_type = MONITOR_ALGO_TYPE,
.data.tm = {
.sensor = "pop_mem",
.sampling_period_ms = 1000,
.num_thresholds = 1,
._n_thresholds = 1,
._n_to_clear = 1,
._n_actions = 1,
._n_action_info = 1,
.t[0] = {
.lvl_trig = 80000,
.lvl_clr = 75000,
.num_actions = 1,
.actions[0] = {
.device = "hotplug_3",
.info = 1,
},
},
},
},
{
.desc = "CPU2_HOTPLUG_MONITOR",
.algo_type = MONITOR_ALGO_TYPE,
.data.tm = {
.sensor = "pop_mem",
.sampling_period_ms = 1000,
.num_thresholds = 1,
._n_thresholds = 1,
._n_to_clear = 1,
._n_actions = 1,
._n_action_info = 1,
.t[0] = {
.lvl_trig = 90000,
.lvl_clr = 85000,
.num_actions = 1,
.actions[0] = {
.device = "hotplug_2",
.info = 1,
},
},
},
},
{
.desc = "CPU1_HOTPLUG_MONITOR",
.algo_type = MONITOR_ALGO_TYPE,
.data.tm = {
.sensor = "pop_mem",
.sampling_period_ms = 1000,
.num_thresholds = 1,
._n_thresholds = 1,
._n_to_clear = 1,
._n_actions = 1,
._n_action_info = 1,
.t[0] = {
.lvl_trig = 100000,
.lvl_clr = 95000,
.num_actions = 1,
.actions[0] = {
.device = "hotplug_1",
.info = 1,
},
},
},
},
{
.desc = "CPU0-1_MONITOR",
.algo_type = MONITOR_ALGO_TYPE,
.data.tm = {
.sensor = "cpu0-1",
.sampling_period_ms = 1000,
.num_thresholds = 1,
._n_thresholds = 1,
._n_to_clear = 1,
._n_actions = 1,
._n_action_info = 1,
.t[0] = {
.lvl_trig = SHUTDOWN_MONITOR_THRESH,
.lvl_clr = SHUTDOWN_MONITOR_THRESH_CLR,
.num_actions = 1,
.actions[0] = {
.device = "shutdown",
.info = 1,
},
},
},
},
{
.desc = "CPU2-3_MONITOR",
.algo_type = MONITOR_ALGO_TYPE,
.data.tm = {
.sensor = "cpu2-3",
.sampling_period_ms = 1000,
.num_thresholds = 1,
._n_thresholds = 1,
._n_to_clear = 1,
._n_actions = 1,
._n_action_info = 1,
.t[0] = {
.lvl_trig = SHUTDOWN_MONITOR_THRESH,
.lvl_clr = SHUTDOWN_MONITOR_THRESH_CLR,
.num_actions = 1,
.actions[0] = {
.device = "shutdown",
.info = 1,
},
},
},
},
};