FRV: Add basic performance counter support

Add basic performance counter support to the FRV arch.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by David Howells and committed by Linus Torvalds 42ca4fb6 00460f41

+38 -1
+1
arch/frv/Kconfig
··· 7 7 default y 8 8 select HAVE_IDE 9 9 select HAVE_ARCH_TRACEHOOK 10 + select HAVE_PERF_COUNTERS 10 11 11 12 config ZONE_DMA 12 13 bool
+17
arch/frv/include/asm/perf_counter.h
··· 1 + /* FRV performance counter support 2 + * 3 + * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. 4 + * Written by David Howells (dhowells@redhat.com) 5 + * 6 + * This program is free software; you can redistribute it and/or 7 + * modify it under the terms of the GNU General Public Licence 8 + * as published by the Free Software Foundation; either version 9 + * 2 of the Licence, or (at your option) any later version. 10 + */ 11 + 12 + #ifndef _ASM_PERF_COUNTER_H 13 + #define _ASM_PERF_COUNTER_H 14 + 15 + #define PERF_COUNTER_INDEX_OFFSET 0 16 + 17 + #endif /* _ASM_PERF_COUNTER_H */
+1 -1
arch/frv/lib/Makefile
··· 5 5 lib-y := \ 6 6 __ashldi3.o __lshrdi3.o __muldi3.o __ashrdi3.o __negdi2.o __ucmpdi2.o \ 7 7 checksum.o memcpy.o memset.o atomic-ops.o atomic64-ops.o \ 8 - outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o 8 + outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o perf_counter.o
+19
arch/frv/lib/perf_counter.c
··· 1 + /* Performance counter handling 2 + * 3 + * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. 4 + * Written by David Howells (dhowells@redhat.com) 5 + * 6 + * This program is free software; you can redistribute it and/or 7 + * modify it under the terms of the GNU General Public Licence 8 + * as published by the Free Software Foundation; either version 9 + * 2 of the Licence, or (at your option) any later version. 10 + */ 11 + 12 + #include <linux/perf_counter.h> 13 + 14 + /* 15 + * mark the performance counter as pending 16 + */ 17 + void set_perf_counter_pending(void) 18 + { 19 + }