2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-19 08:05:27 +08:00
linux-next/arch
Thomas Renninger 4c21adf26f 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

[akpm@linux-foundation.org: build fix]
Signed-off-by: Thomas Renninger <trenn@suse.de>
Cc: davej@codemonkey.org.uk
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Dave Jones <davej@codemonkey.org.uk>
Acked-by: Arjan van de Ven <arjan@infradead.org>
Cc: Robert Schoene <robert.schoene@tu-dresden.de>
Tested-by: Robert Schoene <robert.schoene@tu-dresden.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2010-07-22 12:08:27 +02:00
..
alpha Merge branch 'linus' into perf/core 2010-06-28 22:33:24 +02:00
arm Merge branch 'linus' into perf/core 2010-07-21 21:43:06 +02:00
avr32 arch: Implement local64_t 2010-06-09 11:12:36 +02:00
blackfin arch: Implement local64_t 2010-06-09 11:12:36 +02:00
cris Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
frv Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
h8300 Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
ia64 Merge commit 'v2.6.35-rc4' into perf/core 2010-07-05 08:30:58 +02:00
m32r Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
m68k arch: Implement local64_t 2010-06-09 11:12:36 +02:00
m68knommu Merge branch 'for-35' of git://repo.or.cz/linux-kbuild 2010-06-01 08:55:52 -07:00
microblaze Merge branch 'linus' into perf/core 2010-07-21 21:43:06 +02:00
mips Merge branch 'linus' into perf/core 2010-07-21 21:43:06 +02:00
mn10300 Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
parisc Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
powerpc Merge branch 'linus' into perf/core 2010-07-21 21:43:06 +02:00
s390 Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
score arch: Implement local64_t 2010-06-09 11:12:36 +02:00
sh Merge branch 'linus' into perf/core 2010-07-21 21:43:06 +02:00
sparc Merge branch 'linus' into perf/core 2010-07-21 21:43:06 +02:00
um um: os-linux/mem.c needs sys/stat.h 2010-06-29 15:29:32 -07:00
x86 x86 cpufreq, perf: Make trace_power_frequency cpufreq driver independent 2010-07-22 12:08:27 +02:00
xtensa Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
.gitignore
Kconfig hw-breakpoints: Separate constraint space for data and instruction breakpoints 2010-05-01 04:32:11 +02:00