mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
msm: thermal: Check temperature only if probed
This avoids a (harmless) error: <3>[ 0.214144] msm_thermal:msm_thermal_get_freq_table error reading cpufreq table Change-Id: Ibf8e319751edb49e836b2e207c0075f60b71f44a Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
25c3603d14
commit
f84fead772
@@ -1355,6 +1355,9 @@ static void __ref check_temp(struct work_struct *work)
|
||||
long temp = 0;
|
||||
int ret = 0;
|
||||
|
||||
if (!msm_thermal_probed)
|
||||
return;
|
||||
|
||||
do_therm_reset();
|
||||
|
||||
ret = therm_get_temp(msm_thermal_info.sensor_id, THERM_TSENS_ID, &temp);
|
||||
|
||||
Reference in New Issue
Block a user