db8500_thermal.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | db8500_thermal.c (0e70f466fb910ae54c4c71243b99385129e93feb) |
---|---|
1/* 2 * db8500_thermal.c - DB8500 Thermal Management Implementation 3 * 4 * Copyright (C) 2012 ST-Ericsson 5 * Copyright (C) 2012 Linaro Ltd. 6 * 7 * Author: Hongbo Zhang <hongbo.zhang@linaro.com> 8 * --- 292 unchanged lines hidden (view full) --- 301 302 mutex_lock(&pzone->th_lock); 303 cur_mode = pzone->mode; 304 mutex_unlock(&pzone->th_lock); 305 306 if (cur_mode == THERMAL_DEVICE_DISABLED) 307 return; 308 | 1/* 2 * db8500_thermal.c - DB8500 Thermal Management Implementation 3 * 4 * Copyright (C) 2012 ST-Ericsson 5 * Copyright (C) 2012 Linaro Ltd. 6 * 7 * Author: Hongbo Zhang <hongbo.zhang@linaro.com> 8 * --- 292 unchanged lines hidden (view full) --- 301 302 mutex_lock(&pzone->th_lock); 303 cur_mode = pzone->mode; 304 mutex_unlock(&pzone->th_lock); 305 306 if (cur_mode == THERMAL_DEVICE_DISABLED) 307 return; 308 |
309 thermal_zone_device_update(pzone->therm_dev); | 309 thermal_zone_device_update(pzone->therm_dev, THERMAL_EVENT_UNSPECIFIED); |
310 dev_dbg(&pzone->therm_dev->device, "thermal work finished.\n"); 311} 312 313#ifdef CONFIG_OF 314static struct db8500_thsens_platform_data* 315 db8500_thermal_parse_dt(struct platform_device *pdev) 316{ 317 struct db8500_thsens_platform_data *ptrips; --- 215 unchanged lines hidden --- | 310 dev_dbg(&pzone->therm_dev->device, "thermal work finished.\n"); 311} 312 313#ifdef CONFIG_OF 314static struct db8500_thsens_platform_data* 315 db8500_thermal_parse_dt(struct platform_device *pdev) 316{ 317 struct db8500_thsens_platform_data *ptrips; --- 215 unchanged lines hidden --- |