#undef TRACE_SYSTEM #define TRACE_SYSTEM regulator #if !defined(_TRACE_REGULATOR_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_REGULATOR_H #include #include /* * Events which just log themselves and the regulator name for enable/disable * type tracking. */ DECLARE_EVENT_CLASS(regulator_basic, TP_PROTO(const char *name), TP_ARGS(name), TP_STRUCT__entry( __string( name, name ) ), TP_fast_assign( __assign_str(name, name); ), TP_printk("name=%s", __get_str(name)) ); DEFINE_EVENT(regulator_basic, regulator_enable, TP_PROTO(const char *name), TP_ARGS(name) ); DEFINE_EVENT(regulator_basic, regulator_enable_delay, TP_PROTO(const char *name), TP_ARGS(name) ); DEFINE_EVENT(regulator_basic, regulator_enable_complete, TP_PROTO(const char *name), TP_ARGS(name) ); DEFINE_EVENT(regulator_basic, regulator_disable, TP_PROTO(const char *name), TP_ARGS(name) ); DEFINE_EVENT(regulator_basic, regulator_disable_complete, TP_PROTO(const char *name), TP_ARGS(name) ); /* * Events that take a range of numerical values, mostly for voltages * and so on. */ DECLARE_EVENT_CLASS(regulator_range, TP_PROTO(const char *name, int min, int max), TP_ARGS(name, min, max), TP_STRUCT__entry( __string( name, name ) __field( int, min ) __field( int, max ) ), TP_fast_assign( __assign_str(name, name); __entry->min = min; __entry->max = max; ), TP_printk("name=%s (%d-%d)", __get_str(name), (int)__entry->min, (int)__entry->max) ); DEFINE_EVENT(regulator_range, regulator_set_voltage, TP_PROTO(const char *name, int min, int max), TP_ARGS(name, min, max) ); /* * Events that take a single value, mostly for readback and refcounts. */ DECLARE_EVENT_CLASS(regulator_value, TP_PROTO(const char *name, unsigned int val), TP_ARGS(name, val), TP_STRUCT__entry( __string( name, name ) __field( unsigned int, val ) ), TP_fast_assign( __assign_str(name, name); __entry->val = val; ), TP_printk("name=%s, val=%u", __get_str(name), (int)__entry->val) ); DEFINE_EVENT(regulator_value, regulator_set_voltage_complete, TP_PROTO(const char *name, unsigned int value), TP_ARGS(name, value) ); #endif /* _TRACE_POWER_H */ /* This part must be outside protection */ #include e='grep'>log msg
diff options
context:
space:
mode:
authorMarkus Mayer <mmayer@broadcom.com>2016-12-19 12:10:28 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-01-27 11:43:49 +0100
commit3c223c19aea85d3dda1416c187915f4a30b04b1f (patch)
tree2d2021f8161db3e9ed38b9a966a225b66dff8e58 /include/sound/ak4xxx-adda.h
parent9b02c54bc951fca884ba5719f42a27e8240965bf (diff)
cpufreq: brcmstb-avs-cpufreq: properly retrieve P-state upon suspend
The AVS GET_PMAP command does return a P-state along with the P-map information. However, that P-state is the initial P-state when the P-map was first downloaded to AVS. It is *not* the current P-state. Therefore, we explicitly retrieve the P-state using the GET_PSTATE command. Signed-off-by: Markus Mayer <mmayer@broadcom.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/sound/ak4xxx-adda.h')