cpufreq: intel_pstate: allow trace in passive mode
authorDoug Smythies <doug.smythies@gmail.com>
Mon, 14 May 2018 15:35:49 +0000 (08:35 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 May 2018 21:34:25 +0000 (23:34 +0200)
commit50e9ffaba5ccaac01c5deb17f32b501ba3ed72f0
treea5ec6be168e51cc659e101c3119498ab7c284377
parent20b5324d8353d66e68e8c40031e438c247cf2d65
cpufreq: intel_pstate: allow trace in passive mode

Allow use of the trace_pstate_sample trace function
when the intel_pstate driver is in passive mode.
Since the core_busy and scaled_busy fields are not
used, and it might be desirable to know which path
through the driver was used, either intel_cpufreq_target
or intel_cpufreq_fast_switch, re-task the core_busy
field as a flag indicator.

The user can then use the intel_pstate_tracer.py utility
to summarize and plot the trace.

Note: The core_busy feild still goes by that name
in include/trace/events/power.h and within the
intel_pstate_tracer.py script and csv file headers,
but it is graphed as "performance", and called
core_avg_perf now in the intel_pstate driver.

Sometimes, in passive mode, the driver is not called for
many tens or even hundreds of seconds. The user
needs to understand, and not be confused by, this limitation.

Signed-off-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c