exynos_tmu.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) exynos_tmu.c (0e70f466fb910ae54c4c71243b99385129e93feb)
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2014 Samsung Electronics
5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
6 * Lukasz Majewski <l.majewski@samsung.com>
7 *
8 * Copyright (C) 2011 Samsung Electronics

--- 211 unchanged lines hidden (view full) ---

220 int temp;
221 unsigned int i;
222
223 if (!tz) {
224 pr_err("No thermal zone device defined\n");
225 return;
226 }
227
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2014 Samsung Electronics
5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
6 * Lukasz Majewski <l.majewski@samsung.com>
7 *
8 * Copyright (C) 2011 Samsung Electronics

--- 211 unchanged lines hidden (view full) ---

220 int temp;
221 unsigned int i;
222
223 if (!tz) {
224 pr_err("No thermal zone device defined\n");
225 return;
226 }
227
228 thermal_zone_device_update(tz);
228 thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED);
229
230 mutex_lock(&tz->lock);
231 /* Find the level for which trip happened */
232 for (i = 0; i < of_thermal_get_ntrips(tz); i++) {
233 tz->ops->get_trip_temp(tz, i, &temp);
234 if (tz->last_temperature < temp)
235 break;
236 }

--- 1246 unchanged lines hidden ---
229
230 mutex_lock(&tz->lock);
231 /* Find the level for which trip happened */
232 for (i = 0; i < of_thermal_get_ntrips(tz); i++) {
233 tz->ops->get_trip_temp(tz, i, &temp);
234 if (tz->last_temperature < temp)
235 break;
236 }

--- 1246 unchanged lines hidden ---