Merge back thermal core material for 7.4

This commit is contained in:
Rafael J. Wysocki 2026-09-29 12:22:20 +02:00
commit bc967622c2
2 changed files with 12 additions and 6 deletions

View File

@ -660,10 +660,15 @@ static void power_allocator_update_tz(struct thermal_zone_device *tz,
enum thermal_notify_event reason)
{
struct power_allocator_params *params = tz->governor_data;
const struct thermal_trip_desc *td = trip_to_trip_desc(params->trip_max);
const struct thermal_trip_desc *td;
struct thermal_instance *instance;
int num_actors = 0;
if (!params->trip_max)
return;
td = trip_to_trip_desc(params->trip_max);
switch (reason) {
case THERMAL_TZ_BIND_CDEV:
case THERMAL_TZ_UNBIND_CDEV:

View File

@ -63,22 +63,23 @@ static int thermal_of_get_trip_type(struct device_node *np,
static int thermal_of_populate_trip(struct device_node *np,
struct thermal_trip *trip)
{
int prop;
u32 hysteresis;
s32 temperature;
int ret;
ret = of_property_read_u32(np, "temperature", &prop);
ret = of_property_read_s32(np, "temperature", &temperature);
if (ret < 0) {
pr_err("missing temperature property\n");
return ret;
}
trip->temperature = prop;
trip->temperature = temperature;
ret = of_property_read_u32(np, "hysteresis", &prop);
ret = of_property_read_u32(np, "hysteresis", &hysteresis);
if (ret < 0) {
pr_err("missing hysteresis property\n");
return ret;
}
trip->hysteresis = prop;
trip->hysteresis = hysteresis;
ret = thermal_of_get_trip_type(np, &trip->type);
if (ret < 0) {