x86, perfctr: Remove unused func avail_to_resrv_perfctr_nmi()
authorNaga Chumbalkar <nagananda.chumbalkar@hp.com>
Thu, 24 Dec 2009 01:54:47 +0000 (01:54 +0000)
committerIngo Molnar <mingo@elte.hu>
Mon, 28 Dec 2009 08:36:46 +0000 (09:36 +0100)
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>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: oprofile-list@lists.sf.net
LKML-Reference: <20091224015441.6005.4408.sendpatchset@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/nmi.h
arch/x86/kernel/cpu/perfctr-watchdog.c

index 139d4c1a33a7c85a2989a8ab02ee1f6cee52d601..93da9c3f334120b64165a8124b79b09e71365bf4 100644 (file)
@@ -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);
index 898df9719afbedacb1a709c192b434e5595dd90a..74f4e85a572703b648c0f5c218a758c694bbce4c 100644 (file)
@@ -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)