original_kernel/arch/blackfin
Mathieu Desnoyers 7d2284b09f Fix Blackfin HARDWARE_PM support
This patch restores the blackfin Hardware Performance Monitor Profiling
support that was killed by the combining of instrumentation menus in
commit 09cadedbdc.

Since there seems to be no good reason to behave differently from other
architectures, it now automatically selects the hardware performance
counters whenever the profiling is activated.

mach-common/irqpanic.c: pm_overflow calls pm_overflow_handler which is
in oprofile/op_model_bf533.c.  I doubt that setting HARDWARE_PM as "m"
will work at all, since the pm_overflow_handler should be in the core
kernel image because it is called by irqpanic.c.

Therefore, I change HARDWARE_PM from a tristate to a bool.

The whole arch/$(ARCH)/oprofile/ is built depending on CONFIG_OPROFILE. Since
part of the HARDWARE_PM support files sits in this directory, it makes sense to
also depend on OPROFILE, not only PROFILING. Since OPROFILE already depends on
PROFILING, it is correct to only depend on OPROFILE only.

Thanks to Adrian Bunk for finding this bug and providing an initial
patch.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: Adrian Bunk <adrian.bunk@movial.fi>
CC: Randy Dunlap <randy.dunlap@oracle.com>
CC: bryan.wu@analog.com
Acked-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-01-15 12:32:30 -08:00
..
boot
configs Blackfin arch: update defconfig files 2007-11-21 16:23:51 +08:00
kernel Blackfin arch: split apart dump_bfin_regs and merge/remove show_regs from process.c, which was largely duplicated 2007-11-21 16:46:49 +08:00
lib Blackfin arch: move EXPORT_SYMBOL() to C files where the symbol is actually defined 2007-11-21 15:34:51 +08:00
mach-bf527 Blackfin arch: Dont use cs_change_per_word, since the AD7877 driver doesnt require it anymore; fix bus numbers, fix typos 2007-11-15 21:33:31 +08:00
mach-bf533 Blackfin arch: Typo: "CONFIG_RTC_BFIN_MODULE" -> "CONFIG_RTC_DRV_BFIN_MODULE" 2007-11-17 22:57:03 +08:00
mach-bf537 Blackfin arch: fix bug when enable uart1 with uart0 disabled => no initial console 2007-11-21 17:04:41 +08:00
mach-bf548 Blackfin arch: fix building for BF542 processors which only have 1 TWI 2007-11-21 16:03:07 +08:00
mach-bf561 Blackfin arch: add AXIS AX88180 Gigabit Ethernet Hardware and Driver to board files 2007-11-17 23:56:08 +08:00
mach-common Blackfin arch: split apart dump_bfin_regs and merge/remove show_regs from process.c, which was largely duplicated 2007-11-21 16:46:49 +08:00
mm Blackfin arch: do not include linux/autoconf.h 2007-11-15 21:22:53 +08:00
oprofile
Kconfig Fix Blackfin HARDWARE_PM support 2008-01-15 12:32:30 -08:00
Kconfig.debug
Makefile Blackfin arch: add BF547 to list of accepted procs 2007-11-15 21:10:21 +08:00