linux/arch
Paul Mackerras 079b3c569c perf_counter: powerpc: Change how processor-specific back-ends get selected
At present, the powerpc generic (processor-independent) perf_counter
code has list of processor back-end modules, and at initialization,
it looks at the PVR (processor version register) and has a switch
statement to select a suitable processor-specific back-end.

This is going to become inconvenient as we add more processor-specific
back-ends, so this inverts the order: now each back-end checks whether
it applies to the current processor, and registers itself if so.
Furthermore, instead of looking at the PVR, back-ends now check the
cur_cpu_spec->oprofile_cpu_type string and match on that.

Lastly, each back-end now specifies a name for itself so the core can
print a nice message when a back-end registers itself.

This doesn't provide any support for unregistering back-ends, but that
wouldn't be hard to do and would allow back-ends to be modules.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linuxppc-dev@ozlabs.org
Cc: benh@kernel.crashing.org
LKML-Reference: <19000.55529.762227.518531@cargo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-06-18 11:11:45 +02:00
..
alpha kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
arm Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2009-06-16 21:15:42 -07:00
avr32 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
blackfin Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
cris kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
frv mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
h8300 kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
ia64 kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
m32r kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
m68k kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
m68knommu mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
microblaze kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
mips Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
mn10300 kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
parisc kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
powerpc perf_counter: powerpc: Change how processor-specific back-ends get selected 2009-06-18 11:11:45 +02:00
s390 Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
sh kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
sparc Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
um Merge branch 'akpm' 2009-06-16 19:50:13 -07:00
x86 perf_counter: x86: Set the period in the intel overflow handler 2009-06-17 19:23:52 +02:00
xtensa kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
.gitignore
Kconfig mutex: have non-spinning mutexes on s390 by default 2009-04-09 19:28:24 +02:00