public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86, perfctr: remove unused func avail_to_resrv_perfctr_nmi()
@ 2009-12-24  1:54 Naga Chumbalkar
  2009-12-24 15:04 ` Cyrill Gorcunov
  2009-12-28 10:07 ` [tip:perf/core] x86, perfctr: Remove " tip-bot for Naga Chumbalkar
  0 siblings, 2 replies; 6+ messages in thread
From: Naga Chumbalkar @ 2009-12-24  1:54 UTC (permalink / raw)
  To: x86; +Cc: Naga Chumbalkar, linux-kernel, gorcunov, oprofile-list, mingo,
	tglx

avail_to_resrv_perfctr_nmi() is neither EXPORT'd, nor used in the file.
So remove it.

Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
---
 arch/x86/include/asm/nmi.h             |    1 -
 arch/x86/kernel/cpu/perfctr-watchdog.c |   11 -----------
 2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/arch/x86/include/asm/nmi.h b/arch/x86/include/asm/nmi.h
index 139d4c1..93da9c3 100644
--- a/arch/x86/include/asm/nmi.h
+++ b/arch/x86/include/asm/nmi.h
@@ -19,7 +19,6 @@ extern void die_nmi(char *str, struct pt_regs *regs, int do_panic);
 extern int check_nmi_watchdog(void);
 extern int nmi_watchdog_enabled;
 extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
-extern int avail_to_resrv_perfctr_nmi(unsigned int);
 extern int reserve_perfctr_nmi(unsigned int);
 extern void release_perfctr_nmi(unsigned int);
 extern int reserve_evntsel_nmi(unsigned int);
diff --git a/arch/x86/kernel/cpu/perfctr-watchdog.c b/arch/x86/kernel/cpu/perfctr-watchdog.c
index 898df97..74f4e85 100644
--- a/arch/x86/kernel/cpu/perfctr-watchdog.c
+++ b/arch/x86/kernel/cpu/perfctr-watchdog.c
@@ -115,17 +115,6 @@ int avail_to_resrv_perfctr_nmi_bit(unsigned int counter)
 
 	return !test_bit(counter, perfctr_nmi_owner);
 }
-
-/* checks the an msr for availability */
-int avail_to_resrv_perfctr_nmi(unsigned int msr)
-{
-	unsigned int counter;
-
-	counter = nmi_perfctr_msr_to_bit(msr);
-	BUG_ON(counter > NMI_MAX_COUNTER_BITS);
-
-	return !test_bit(counter, perfctr_nmi_owner);
-}
 EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi_bit);
 
 int reserve_perfctr_nmi(unsigned int msr)
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-28 10:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-24  1:54 [PATCH] x86, perfctr: remove unused func avail_to_resrv_perfctr_nmi() Naga Chumbalkar
2009-12-24 15:04 ` Cyrill Gorcunov
2009-12-28  8:38   ` Ingo Molnar
2009-12-28  9:55     ` Cyrill Gorcunov
2009-12-28 10:00       ` Ingo Molnar
2009-12-28 10:07 ` [tip:perf/core] x86, perfctr: Remove " tip-bot for Naga Chumbalkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox