summaryrefslogtreecommitdiff
path: root/arch/sparc/lib/interrupts.c
diff options
context:
space:
mode:
authorFrancois Retief <fgretief@spaceteq.co.za>2015-11-21 23:15:07 +0200
committerFrancois Retief <fgretief@spaceteq.co.za>2015-12-03 13:15:50 +0200
commit7a4fb11b85939b47738283c3a7ae7f461468e274 (patch)
treee3367520a0795a6e84275381a92d0f9f4bf71cfc /arch/sparc/lib/interrupts.c
parentf376c42f3b28862326ea378b0b6cc6b9b699d0c0 (diff)
downloadu-boot-imx-7a4fb11b85939b47738283c3a7ae7f461468e274.zip
u-boot-imx-7a4fb11b85939b47738283c3a7ae7f461468e274.tar.gz
u-boot-imx-7a4fb11b85939b47738283c3a7ae7f461468e274.tar.bz2
sparc: Remove non-generic board init files: board.c, time.c
Remove the board.c and time.c files and all associated non-generic board initialization code. Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
Diffstat (limited to 'arch/sparc/lib/interrupts.c')
-rw-r--r--arch/sparc/lib/interrupts.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/sparc/lib/interrupts.c b/arch/sparc/lib/interrupts.c
index fab26c6..cb73d17 100644
--- a/arch/sparc/lib/interrupts.c
+++ b/arch/sparc/lib/interrupts.c
@@ -66,33 +66,3 @@ int interrupt_init(void)
return ret;
}
-
-/* timer interrupt/overflow counter */
-static volatile ulong timestamp = 0;
-
-/* regs can not be used here! regs is actually the pointer given in
- * irq_install_handler
- */
-void timer_interrupt(struct pt_regs *regs)
-{
- /* call cpu specific function from $(CPU)/interrupts.c */
- timer_interrupt_cpu((void *)regs);
-
- timestamp++;
-}
-
-void timer_interrupt_init(void)
-{
- int irq;
-
- timestamp = 0;
-
- irq = timer_interrupt_init_cpu();
-
- if (irq < 0) {
- /* cpu specific code handled the interrupt registration it self */
- return;
- }
- /* register interrupt handler for timer */
- irq_install_handler(irq, (void (*)(void *))timer_interrupt, NULL);
-}