diff options
| author | Ram Chandrasekar <rkumbako@codeaurora.org> | 2016-05-18 12:01:31 -0600 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-07 16:06:08 -0700 |
| commit | 432cb528fd1ba1d7e7bc26a77d28687f691389be (patch) | |
| tree | 9e697414383f51741aee78e73007394ab36854cb /include | |
| parent | 8f2bc2304cdd5699ac79c5b4d5d088d3cda4fb63 (diff) | |
drivers: thermal: Add ftrace events for LMH DCVSh mitigation
LMH DCVSh driver receives interrupt from hardware whenever there is a
new mitigation frequency decision is made in hardware.
Add ftrace event to print the hardware mitigation frequency value from
driver.
Change-Id: Ib357ee3c3a461613bfd1268ec8f98973c2982c10
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/trace_thermal.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/include/trace/trace_thermal.h b/include/trace/trace_thermal.h index 0be0f47f88d2..39f3e9d08d13 100644 --- a/include/trace/trace_thermal.h +++ b/include/trace/trace_thermal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -112,6 +112,37 @@ TRACE_EVENT(lmh_debug_data, ) ); +#elif defined(LMH_DCVS_TRACE) +DECLARE_EVENT_CLASS(msm_lmh_dcvs_print, + + TP_PROTO(int cpu, long max_freq), + + TP_ARGS( + cpu, max_freq + ), + + TP_STRUCT__entry( + __field(int, cpu) + __field(long, max_freq) + ), + + TP_fast_assign( + __entry->cpu = cpu; + __entry->max_freq = max_freq; + ), + + TP_printk( + "cpu:%d max frequency:%ld", + __entry->cpu, __entry->max_freq + ) +); + +DEFINE_EVENT(msm_lmh_dcvs_print, lmh_dcvs_freq, + + TP_PROTO(int cpu, long max_freq), + + TP_ARGS(cpu, max_freq) +); #elif defined(TRACE_MSM_THERMAL) |
