diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-11 19:13:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-11 19:13:47 -0400 |
commit | 9ebd051a7d5aa7b0ce813c3c2e5b9c851e7774b9 (patch) | |
tree | 5bc54f2de4312e5fe13356779c7bf49132e2a3fd /include/trace | |
parent | 51a73ba5f409ef6f419c8ec3a0d1257633500aaa (diff) | |
parent | 5a924a07f882e866f2337bf65048be357956691a (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal updates from Zhang Rui:
- use int instead of unsigned long to represent temperature to avoid
bogus overheat detection when negative temperature reported. From
Sascha Hauer.
- export available thermal governors information to user space via
sysfs. From Wei Ni.
- introduce new thermal driver for Wildcat Point platform controller
hub, which uses PCH thermal sensor and associated critical and hot
trip points. From Tushar Dave.
- add suuport for Intel Skylake and Denlow platforms in powerclamp
driver.
- some small cleanups in thermal core.
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
thermal: Add Intel PCH thermal driver
thermal: Add comment explaining test for critical temperature
thermal: Use IS_ENABLED instead of #ifdef
thermal: remove unnecessary call to thermal_zone_device_set_polling
thermal: trivial: fix typo in comment
thermal: consistently use int for temperatures
thermal: add available policies sysfs attribute
thermal/powerclamp: add cpu id for denlow platform
thermal/powerclamp: add cpu id for Skylake u/y
thermal/powerclamp: add cpu id for skylake h/s
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/thermal_power_allocator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/trace/events/thermal_power_allocator.h b/include/trace/events/thermal_power_allocator.h index 12e1321c4e0c..5afae8fe3795 100644 --- a/include/trace/events/thermal_power_allocator.h +++ b/include/trace/events/thermal_power_allocator.h | |||
@@ -11,7 +11,7 @@ TRACE_EVENT(thermal_power_allocator, | |||
11 | u32 total_req_power, u32 *granted_power, | 11 | u32 total_req_power, u32 *granted_power, |
12 | u32 total_granted_power, size_t num_actors, | 12 | u32 total_granted_power, size_t num_actors, |
13 | u32 power_range, u32 max_allocatable_power, | 13 | u32 power_range, u32 max_allocatable_power, |
14 | unsigned long current_temp, s32 delta_temp), | 14 | int current_temp, s32 delta_temp), |
15 | TP_ARGS(tz, req_power, total_req_power, granted_power, | 15 | TP_ARGS(tz, req_power, total_req_power, granted_power, |
16 | total_granted_power, num_actors, power_range, | 16 | total_granted_power, num_actors, power_range, |
17 | max_allocatable_power, current_temp, delta_temp), | 17 | max_allocatable_power, current_temp, delta_temp), |
@@ -24,7 +24,7 @@ TRACE_EVENT(thermal_power_allocator, | |||
24 | __field(size_t, num_actors ) | 24 | __field(size_t, num_actors ) |
25 | __field(u32, power_range ) | 25 | __field(u32, power_range ) |
26 | __field(u32, max_allocatable_power ) | 26 | __field(u32, max_allocatable_power ) |
27 | __field(unsigned long, current_temp ) | 27 | __field(int, current_temp ) |
28 | __field(s32, delta_temp ) | 28 | __field(s32, delta_temp ) |
29 | ), | 29 | ), |
30 | TP_fast_assign( | 30 | TP_fast_assign( |
@@ -42,7 +42,7 @@ TRACE_EVENT(thermal_power_allocator, | |||
42 | __entry->delta_temp = delta_temp; | 42 | __entry->delta_temp = delta_temp; |
43 | ), | 43 | ), |
44 | 44 | ||
45 | TP_printk("thermal_zone_id=%d req_power={%s} total_req_power=%u granted_power={%s} total_granted_power=%u power_range=%u max_allocatable_power=%u current_temperature=%lu delta_temperature=%d", | 45 | TP_printk("thermal_zone_id=%d req_power={%s} total_req_power=%u granted_power={%s} total_granted_power=%u power_range=%u max_allocatable_power=%u current_temperature=%d delta_temperature=%d", |
46 | __entry->tz_id, | 46 | __entry->tz_id, |
47 | __print_array(__get_dynamic_array(req_power), | 47 | __print_array(__get_dynamic_array(req_power), |
48 | __entry->num_actors, 4), | 48 | __entry->num_actors, 4), |