mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
Thermal: SM1: thermal driver print error [2/2]
PD#SWPL-18939 Problem: high temp restart fails to offline cpus Solution: make cpucore current state update at meson cdev probe Verify: S905X3_AC214 Change-Id: I1ab1e6b5219d8f62c5ad8586eaf614a5f3833765 Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
This commit is contained in:
@@ -152,6 +152,8 @@ static int meson_set_min_status(struct thermal_cooling_device *cdev,
|
||||
for (i = 0; i < tzd->trips; i++)
|
||||
thermal_set_upper(tzd,
|
||||
cdev, i, min_state);
|
||||
thermal_zone_device_update(tzd,
|
||||
THERMAL_EVENT_UNSPECIFIED);
|
||||
err = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -484,6 +484,8 @@ static bool can_notify(struct thermal_zone_device *tz,
|
||||
tz->temperature, hyst, trip_temp, tz->hot_step);
|
||||
return true;
|
||||
}
|
||||
if (tz->hot_step != 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user