diff options
author | David S. Miller <davem@davemloft.net> | 2009-09-10 09:28:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-10 09:28:20 -0400 |
commit | 59abbd1e7cfd6018fb8e58a96aa562aaff8711e7 (patch) | |
tree | 18114674792b9b79fff35b69bab7eea6a20fcf00 /arch/sparc/include | |
parent | 5686f9c3d67d5a20108fa26105c98b042df13123 (diff) |
sparc64: Initial hw perf counter support.
Only supports one simple counter and only UltraSPARC-IIIi chips.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/nmi.h | 3 | ||||
-rw-r--r-- | arch/sparc/include/asm/perf_counter.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/nmi.h b/arch/sparc/include/asm/nmi.h index c7d11e435df9..72e6500e7ab0 100644 --- a/arch/sparc/include/asm/nmi.h +++ b/arch/sparc/include/asm/nmi.h | |||
@@ -7,4 +7,7 @@ extern void nmi_adjust_hz(unsigned int new_hz); | |||
7 | 7 | ||
8 | extern atomic_t nmi_active; | 8 | extern atomic_t nmi_active; |
9 | 9 | ||
10 | extern void start_nmi_watchdog(void *unused); | ||
11 | extern void stop_nmi_watchdog(void *unused); | ||
12 | |||
10 | #endif /* __NMI_H */ | 13 | #endif /* __NMI_H */ |
diff --git a/arch/sparc/include/asm/perf_counter.h b/arch/sparc/include/asm/perf_counter.h index 38d644546435..5d7a8ca0e491 100644 --- a/arch/sparc/include/asm/perf_counter.h +++ b/arch/sparc/include/asm/perf_counter.h | |||
@@ -5,4 +5,10 @@ extern void set_perf_counter_pending(void); | |||
5 | 5 | ||
6 | #define PERF_COUNTER_INDEX_OFFSET 0 | 6 | #define PERF_COUNTER_INDEX_OFFSET 0 |
7 | 7 | ||
8 | #ifdef CONFIG_PERF_COUNTERS | ||
9 | extern void init_hw_perf_counters(void); | ||
10 | #else | ||
11 | static inline void init_hw_perf_counters(void) { } | ||
12 | #endif | ||
13 | |||
8 | #endif | 14 | #endif |