aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-09-10 06:28:20 -0700
committerDavid S. Miller <davem@davemloft.net>2009-09-10 06:28:20 -0700
commit59abbd1e7cfd6018fb8e58a96aa562aaff8711e7 (patch)
tree18114674792b9b79fff35b69bab7eea6a20fcf00 /arch/sparc/include
parent5686f9c3d67d5a20108fa26105c98b042df13123 (diff)
downloadkernel_samsung_tuna-59abbd1e7cfd6018fb8e58a96aa562aaff8711e7.zip
kernel_samsung_tuna-59abbd1e7cfd6018fb8e58a96aa562aaff8711e7.tar.gz
kernel_samsung_tuna-59abbd1e7cfd6018fb8e58a96aa562aaff8711e7.tar.bz2
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.h3
-rw-r--r--arch/sparc/include/asm/perf_counter.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/nmi.h b/arch/sparc/include/asm/nmi.h
index c7d11e4..72e6500 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);
extern atomic_t nmi_active;
+extern void start_nmi_watchdog(void *unused);
+extern void stop_nmi_watchdog(void *unused);
+
#endif /* __NMI_H */
diff --git a/arch/sparc/include/asm/perf_counter.h b/arch/sparc/include/asm/perf_counter.h
index 38d6445..5d7a8ca 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);
#define PERF_COUNTER_INDEX_OFFSET 0
+#ifdef CONFIG_PERF_COUNTERS
+extern void init_hw_perf_counters(void);
+#else
+static inline void init_hw_perf_counters(void) { }
+#endif
+
#endif