sparc32: remove tick14.c
authorSam Ravnborg <sam@ravnborg.org>
Fri, 28 Jan 2011 22:08:17 +0000 (22:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Mar 2011 01:19:08 +0000 (18:19 -0700)
The two methods included in tick14.c was nop because
the static variable linux_lvl14 was always NULL.

So remove the file and callers.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/Makefile
arch/sparc/kernel/tick14.c [deleted file]
arch/sparc/prom/misc_32.c

index 27e7f2542b1c984b9c3a3ad678eb30098bcdbdfc..99aa4db6e9c2963f154052611055a535f64762a1 100644 (file)
@@ -42,7 +42,6 @@ obj-$(CONFIG_SPARC32)   += windows.o
 obj-y                   += cpu.o
 obj-$(CONFIG_SPARC32)   += devices.o
 obj-$(CONFIG_SPARC32)   += tadpole.o
-obj-$(CONFIG_SPARC32)   += tick14.o
 obj-y                   += ptrace_$(BITS).o
 obj-y                   += unaligned_$(BITS).o
 obj-y                   += una_asm_$(BITS).o
diff --git a/arch/sparc/kernel/tick14.c b/arch/sparc/kernel/tick14.c
deleted file mode 100644 (file)
index 138bbf5..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tick14.c
- *
- * Copyright (C) 1996 David Redman (djhr@tadpole.co.uk)
- *
- * This file handles the Sparc specific level14 ticker
- * This is really useful for profiling OBP uses it for keyboard
- * aborts and other stuff.
- */
-#include <linux/kernel.h>
-
-extern unsigned long lvl14_save[5];
-static unsigned long *linux_lvl14 = NULL;
-static unsigned long obp_lvl14[4];
-/*
- * Call with timer IRQ closed.
- * First time we do it with disable_irq, later prom code uses spin_lock_irq().
- */
-void install_linux_ticker(void)
-{
-
-       if (!linux_lvl14)
-               return;
-       linux_lvl14[0] =  lvl14_save[0];
-       linux_lvl14[1] =  lvl14_save[1];
-       linux_lvl14[2] =  lvl14_save[2];
-       linux_lvl14[3] =  lvl14_save[3];
-}
-
-void install_obp_ticker(void)
-{
-
-       if (!linux_lvl14)
-               return;
-       linux_lvl14[0] =  obp_lvl14[0];
-       linux_lvl14[1] =  obp_lvl14[1];
-       linux_lvl14[2] =  obp_lvl14[2];
-       linux_lvl14[3] =  obp_lvl14[3]; 
-}
index 8c278c311ba4788479f99448e310018de618ac7b..677b6a10fbde3e2e4c6728027d67ae5b24ed9eeb 100644 (file)
@@ -54,15 +54,11 @@ EXPORT_SYMBOL(prom_feval);
 void
 prom_cmdline(void)
 {
-       extern void install_obp_ticker(void);
-       extern void install_linux_ticker(void);
        unsigned long flags;
 
        spin_lock_irqsave(&prom_lock, flags);
-       install_obp_ticker();
        (*(romvec->pv_abort))();
        restore_current();
-       install_linux_ticker();
        spin_unlock_irqrestore(&prom_lock, flags);
        set_auxio(AUXIO_LED, 0);
 }