Skip to content

Commit

Permalink
ARM: 6073/1: oprofile: remove old files and update KConfig
Browse files Browse the repository at this point in the history
Enable hardware perf-events if CPU_HAS_PMU and select
HAVE_OPROFILE if HAVE_PERF_EVENTS. If no hardware support
is present, OProfile will fall back to timer mode.

This patch also removes the old OProfile drivers in favour
of the code implemented by perf.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Will Deacon authored and Russell King committed May 17, 2010
1 parent 8c1fc96 commit fe16614
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 1,789 deletions.
26 changes: 2 additions & 24 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config ARM
select RTC_LIB
select SYS_SUPPORTS_APM_EMULATION
select GENERIC_ATOMIC64 if (!CPU_32v6K)
select HAVE_OPROFILE
select HAVE_OPROFILE if (HAVE_PERF_EVENTS)
select HAVE_ARCH_KGDB
select HAVE_KPROBES if (!XIP_KERNEL)
select HAVE_KRETPROBES if (HAVE_KPROBES)
Expand Down Expand Up @@ -181,28 +181,6 @@ config ARM_L1_CACHE_SHIFT_6
help
Setting ARM L1 cache line size to 64 Bytes.

if OPROFILE

config OPROFILE_ARMV6
def_bool y
depends on CPU_V6 && !SMP
select OPROFILE_ARM11_CORE

config OPROFILE_MPCORE
def_bool y
depends on CPU_V6 && SMP
select OPROFILE_ARM11_CORE

config OPROFILE_ARM11_CORE
bool

config OPROFILE_ARMV7
def_bool y
depends on CPU_V7 && !SMP
bool

endif

config VECTORS_BASE
hex
default 0xffff0000 if MMU || CPU_HIGH_VECTOR
Expand Down Expand Up @@ -1334,7 +1312,7 @@ config HIGHPTE

config HW_PERF_EVENTS
bool "Enable hardware performance counter support for perf events"
depends on PERF_EVENTS && CPU_HAS_PMU && (CPU_V6 || CPU_V7)
depends on PERF_EVENTS && CPU_HAS_PMU
default y
help
Enable hardware performance counter support for perf events. If
Expand Down
7 changes: 1 addition & 6 deletions arch/arm/oprofile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@ DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
oprofilefs.o oprofile_stats.o \
timer_int.o )

oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
oprofile-$(CONFIG_CPU_XSCALE) += op_model_xscale.o
oprofile-$(CONFIG_OPROFILE_ARM11_CORE) += op_model_arm11_core.o
oprofile-$(CONFIG_OPROFILE_ARMV6) += op_model_v6.o
oprofile-$(CONFIG_OPROFILE_MPCORE) += op_model_mpcore.o
oprofile-$(CONFIG_OPROFILE_ARMV7) += op_model_v7.o
oprofile-y := $(DRIVER_OBJS) common.o
83 changes: 0 additions & 83 deletions arch/arm/oprofile/backtrace.c

This file was deleted.

35 changes: 0 additions & 35 deletions arch/arm/oprofile/op_arm_model.h

This file was deleted.

27 changes: 0 additions & 27 deletions arch/arm/oprofile/op_counter.h

This file was deleted.

162 changes: 0 additions & 162 deletions arch/arm/oprofile/op_model_arm11_core.c

This file was deleted.

Loading

0 comments on commit fe16614

Please sign in to comment.