diff options
author | Thomas Renninger <[email protected]> | 2010-07-20 16:59:34 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-07-22 12:08:27 +0200 |
commit | 4c21adf26f8fcf86a755b9b9f55c2e9fd241e1fb (patch) | |
tree | f01c367d4cca879d39fe42704c6a9f047518dfdf /tools/perf/scripts/python | |
parent | 23c2875725ebb03e58e598754309e198648f608a (diff) |
x86 cpufreq, perf: Make trace_power_frequency cpufreq driver independent
and fix the broken case if a core's frequency depends on others.
trace_power_frequency was only implemented in a rather ungeneric
way in acpi-cpufreq driver's target() function only.
-> Move the call to trace_power_frequency to
cpufreq.c:cpufreq_notify_transition() where CPUFREQ_POSTCHANGE
notifier is triggered.
This will support power frequency tracing by all cpufreq
drivers.
trace_power_frequency did not trace frequency changes correctly
when the userspace governor was used or when CPU cores'
frequency depend on each other.
-> Moving this into the CPUFREQ_POSTCHANGE notifier and pass the cpu
which gets switched automatically fixes this.
Robert Schoene provided some important fixes on top of my
initial quick shot version which are integrated in this patch:
- Forgot some changes in power_end trace (TP_printk/variable names)
- Variable dummy in power_end must now be cpu_id
- Use static 64 bit variable instead of unsigned int for cpu_id
[[email protected]: build fix]
Signed-off-by: Thomas Renninger <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Dave Jones <[email protected]>
Acked-by: Arjan van de Ven <[email protected]>
Cc: Robert Schoene <[email protected]>
Tested-by: Robert Schoene <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions