linux/arch/metag/kernel
James Hogan f5d163aad3 metag: perf: fix build on Meta1
Meta1 doesn't support PERF_ICORE or PERF_CHAN registers resulting in
build errors due to missing definitions. Fix this with an ifdef matching
the one in asm/metag_mem.h.

The build errors (found by a randconfig):

arch/metag/kernel/perf/perf_event.c: In function 'metag_pmu_enable_counter':
arch/metag/kernel/perf/perf_event.c:639: error: 'PERF_ICORE0' undeclared (first use in this function)
arch/metag/kernel/perf/perf_event.c:639: error: (Each undeclared identifier is reported only once
arch/metag/kernel/perf/perf_event.c:639: error: for each function it appears in.)
arch/metag/kernel/perf/perf_event.c:643: error: 'PERF_CHAN0' undeclared (first use in this function)

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-metag@vger.kernel.org
2016-05-03 09:25:30 +01:00
..
perf metag: perf: fix build on Meta1 2016-05-03 09:25:30 +01:00
.gitignore metag: Build infrastructure 2013-03-02 20:09:54 +00:00
asm-offsets.c metag: Build infrastructure 2013-03-02 20:09:54 +00:00
cachepart.c metag: cachepart: Fix failure check 2014-07-18 10:36:59 +01:00
clock.c metag: log core and timer frequencies from arch code 2013-06-13 12:55:27 +01:00
core_reg.c metag: SMP support 2013-03-02 20:09:51 +00:00
da.c metag: export _metag_da_present and cpu_2_hwthread_id 2013-03-27 14:37:52 +00:00
devtree.c metag: use common of_flat_dt_match_machine 2013-10-09 20:03:57 -05:00
dma.c metag: convert to dma_map_ops 2016-01-20 17:09:18 -08:00
ftrace_stub.S metag: ftrace: Remove check of obsolete variable function_trace_stop 2014-07-18 13:58:09 -04:00
ftrace.c metag: ftrace: remove the misleading comment for ftrace_dyn_arch_init 2016-04-29 22:37:51 +01:00
head.S metag: smp: copy cache partition and enable GCOn 2013-03-15 13:21:17 +00:00
irq.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
kick.c metag: kick: add missing irq_enter/exit to kick_handler() 2013-07-02 14:12:08 +01:00
machines.c
Makefile metag: Add JTAG Debug Adapter (DA) support 2013-03-02 20:09:56 +00:00
metag_ksyms.c metag: move EXPORT_SYMBOL(csum_partial) to metag_ksyms.c 2013-07-04 10:00:02 +01:00
module.c module: use a structure to encapsulate layout. 2015-12-04 22:46:25 +01:00
perf_callchain.c metag: Perf 2013-03-02 20:09:54 +00:00
process.c metag: copy_thread(): rename 'arg' argument to 'kthread_arg' 2015-03-16 15:48:32 +00:00
ptrace.c metag: ptrace: Implement NT_METAG_TLS 2013-03-27 14:37:47 +00:00
setup.c of/fdt: consolidate built-in dtb section variables 2014-04-30 00:59:13 -05:00
signal.c all arches, signal: move restart_block to struct task_struct 2015-02-12 18:54:12 -08:00
smp.c metag: SMP: Fix 4KiB stack setup on secondary CPUs 2015-09-15 22:52:47 +01:00
stacktrace.c metag: Stack unwinding 2013-03-02 20:09:52 +00:00
sys_metag.c metag: System Calls 2013-03-02 20:09:49 +00:00
tbiunexp.S metag: Traps 2013-03-02 20:09:45 +00:00
tcm.c
time.c metag: init common clk and use "core" clk 2013-06-13 12:54:41 +01:00
topology.c metag: topology: export 'cpu_core_map' 2013-12-19 11:36:13 +00:00
traps.c metag: handle low level kicks directly 2013-11-06 10:40:02 +00:00
user_gateway.S metag: System Calls 2013-03-02 20:09:49 +00:00
vmlinux.lds.S metag: Build infrastructure 2013-03-02 20:09:54 +00:00