Re: [PATCH 2/2] x86 cpufreq: Make trace_power_frequency cpufreq driver independent

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Renninger
Date: Friday, April 30, 2010 - 3:00 am

On Friday 30 April 2010 11:08:14 Ingo Molnar wrote:
Currently the C-states get triggered on the machine you are running on.
But you can have C-state dependencies (ACPI spec at least defines this 
the same way as done for P-states, not sure whether this exists in
reality already, Linux does not evaluate them yet).
The same way we run into trouble with P-states (SW_ALL, SW_ANY, HW).
Not sure how this will/could show up in reality in HW or implementation, but
as these dependencies are already defined in spec, it sounds like a good idea
to pass the CPU through the POWER_CSTATE events as well.

Compare with chapter 8.4.2.2 _CSD (C-State Dependency)
of an ACPI spec 3.0 or newer.

There are also other architectures starting to use processor sleep states.

So this is not actually used (smp_processor_id() is the same as already
tracked by trace event internally), but to make the interface more robust
for the future. Changes in the trace_power layout later may hurt.
 
Oops. Tell me if you like to push it and I send a checkpatch cleaned up version.
Sorry about that.

     Thomas
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Implement trace_power_frequency for all cpufreq drivers, Thomas Renninger, (Tue Apr 27, 7:57 am)
Re: [PATCH 1/2] acpi-cpufreq: Fix CPU_ANY CPUFREQ_{PRE,POS ..., Venkatesh Pallipadi, (Tue Apr 27, 10:08 am)
Re: [PATCH 2/2] x86 cpufreq: Make trace_power_frequency cp ..., Thomas Renninger, (Fri Apr 30, 3:00 am)