diff options
author | David Howells <dhowells@redhat.com> | 2009-07-02 00:46:21 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-01 19:38:31 -0700 |
commit | 42ca4fb69126dd9d0e25112edca1cacf846aa5c3 (patch) | |
tree | a06d9c3eb1b7ebd62dd04328bc4371b4016224a3 /arch/frv/lib | |
parent | 00460f41fffc0435dbb6ab4b058a190163d57ce6 (diff) | |
download | op-kernel-dev-42ca4fb69126dd9d0e25112edca1cacf846aa5c3.zip op-kernel-dev-42ca4fb69126dd9d0e25112edca1cacf846aa5c3.tar.gz |
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>
Diffstat (limited to 'arch/frv/lib')
-rw-r--r-- | arch/frv/lib/Makefile | 2 | ||||
-rw-r--r-- | arch/frv/lib/perf_counter.c | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/arch/frv/lib/Makefile b/arch/frv/lib/Makefile index 4ff2fb1..0a37721 100644 --- a/arch/frv/lib/Makefile +++ b/arch/frv/lib/Makefile @@ -5,4 +5,4 @@ lib-y := \ __ashldi3.o __lshrdi3.o __muldi3.o __ashrdi3.o __negdi2.o __ucmpdi2.o \ checksum.o memcpy.o memset.o atomic-ops.o atomic64-ops.o \ - outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o + outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o perf_counter.o diff --git a/arch/frv/lib/perf_counter.c b/arch/frv/lib/perf_counter.c new file mode 100644 index 0000000..2000fee --- /dev/null +++ b/arch/frv/lib/perf_counter.c @@ -0,0 +1,19 @@ +/* Performance counter handling + * + * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. + * Written by David Howells (dhowells@redhat.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public Licence + * as published by the Free Software Foundation; either version + * 2 of the Licence, or (at your option) any later version. + */ + +#include <linux/perf_counter.h> + +/* + * mark the performance counter as pending + */ +void set_perf_counter_pending(void) +{ +} |