summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2009-02-11 13:57:25 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-13 09:06:18 -0500
commitb5f9fd0f8a05c9bafb91a9a85b9110938d8e585b (patch)
tree14e84d393f5dd1235fc6e256564d80e965daf3a7 /arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
parent45141d4667d208421ca787a3301542b6a5e0b112 (diff)
downloadblackbird-op-linux-b5f9fd0f8a05c9bafb91a9a85b9110938d8e585b.tar.gz
blackbird-op-linux-b5f9fd0f8a05c9bafb91a9a85b9110938d8e585b.zip
tracing: convert c/p state power tracer to use tracepoints
Convert the c/p state "power" tracer to use tracepoints. Avoids a function call when the tracer is disabled. Signed-off-by: Jason Baron <jbaron@redhat.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
index 7ed925edf4d2..c5d737cdb365 100644
--- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -70,6 +70,8 @@ struct acpi_cpufreq_data {
static DEFINE_PER_CPU(struct acpi_cpufreq_data *, drv_data);
+DEFINE_TRACE(power_mark);
+
/* acpi_perf_data is a pointer to percpu data. */
static struct acpi_processor_performance *acpi_perf_data;
OpenPOWER on IntegriCloud