diff options
Diffstat (limited to 'arch/sparc64/kernel/irq.c')
-rw-r--r-- | arch/sparc64/kernel/irq.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c index daa2fb93052c..c9b69167632a 100644 --- a/arch/sparc64/kernel/irq.c +++ b/arch/sparc64/kernel/irq.c | |||
@@ -782,8 +782,14 @@ static void distribute_irqs(void) | |||
782 | } | 782 | } |
783 | #endif | 783 | #endif |
784 | 784 | ||
785 | struct sun5_timer { | ||
786 | u64 count0; | ||
787 | u64 limit0; | ||
788 | u64 count1; | ||
789 | u64 limit1; | ||
790 | }; | ||
785 | 791 | ||
786 | struct sun5_timer *prom_timers; | 792 | static struct sun5_timer *prom_timers; |
787 | static u64 prom_limit0, prom_limit1; | 793 | static u64 prom_limit0, prom_limit1; |
788 | 794 | ||
789 | static void map_prom_timers(void) | 795 | static void map_prom_timers(void) |
@@ -839,18 +845,6 @@ static void kill_prom_timer(void) | |||
839 | : "g1", "g2"); | 845 | : "g1", "g2"); |
840 | } | 846 | } |
841 | 847 | ||
842 | void enable_prom_timer(void) | ||
843 | { | ||
844 | if (!prom_timers) | ||
845 | return; | ||
846 | |||
847 | /* Set it to whatever was there before. */ | ||
848 | prom_timers->limit1 = prom_limit1; | ||
849 | prom_timers->count1 = 0; | ||
850 | prom_timers->limit0 = prom_limit0; | ||
851 | prom_timers->count0 = 0; | ||
852 | } | ||
853 | |||
854 | void init_irqwork_curcpu(void) | 848 | void init_irqwork_curcpu(void) |
855 | { | 849 | { |
856 | register struct irq_work_struct *workp asm("o2"); | 850 | register struct irq_work_struct *workp asm("o2"); |