aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm
diff options
context:
space:
mode:
authorSteven J. Hill <Steven.Hill@imgtec.com>2013-04-10 17:29:13 -0400
committerRalf Baechle <ralf@linux-mips.org>2013-05-09 11:55:21 -0400
commit2675fa7c7b46842f82b2766b5abe80e16ce32977 (patch)
tree7d0f015d938e36e1c8145143ef0608eebe8dd2aa /arch/mips/include/asm
parentdfa762e1c31c30607e4e5259f287dd3e174cbcc3 (diff)
MIPS: Formatting clean-ups for clocksources.
Various whitespace and #ifdef removals for GIC and R4K clocksources. Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r--arch/mips/include/asm/gic.h4
-rw-r--r--arch/mips/include/asm/time.h5
2 files changed, 2 insertions, 7 deletions
diff --git a/arch/mips/include/asm/gic.h b/arch/mips/include/asm/gic.h
index 6aa68ffad33c..398cf548832a 100644
--- a/arch/mips/include/asm/gic.h
+++ b/arch/mips/include/asm/gic.h
@@ -372,19 +372,17 @@ extern struct gic_shared_intr_map gic_shared_intr_map[];
372extern void gic_init(unsigned long gic_base_addr, 372extern void gic_init(unsigned long gic_base_addr,
373 unsigned long gic_addrspace_size, struct gic_intr_map *intrmap, 373 unsigned long gic_addrspace_size, struct gic_intr_map *intrmap,
374 unsigned int intrmap_size, unsigned int irqbase); 374 unsigned int intrmap_size, unsigned int irqbase);
375
376extern void gic_clocksource_init(unsigned int); 375extern void gic_clocksource_init(unsigned int);
377extern unsigned int gic_get_int(void);
378extern cycle_t gic_read_count(void); 376extern cycle_t gic_read_count(void);
379extern void gic_send_ipi(unsigned int intr); 377extern void gic_send_ipi(unsigned int intr);
380extern unsigned int plat_ipi_call_int_xlate(unsigned int); 378extern unsigned int plat_ipi_call_int_xlate(unsigned int);
381extern unsigned int plat_ipi_resched_int_xlate(unsigned int); 379extern unsigned int plat_ipi_resched_int_xlate(unsigned int);
382extern void gic_bind_eic_interrupt(int irq, int set); 380extern void gic_bind_eic_interrupt(int irq, int set);
383extern unsigned int gic_get_timer_pending(void); 381extern unsigned int gic_get_timer_pending(void);
382extern unsigned int gic_get_int(void);
384extern void gic_enable_interrupt(int irq_vec); 383extern void gic_enable_interrupt(int irq_vec);
385extern void gic_disable_interrupt(int irq_vec); 384extern void gic_disable_interrupt(int irq_vec);
386extern void gic_irq_ack(struct irq_data *d); 385extern void gic_irq_ack(struct irq_data *d);
387extern void gic_finish_irq(struct irq_data *d); 386extern void gic_finish_irq(struct irq_data *d);
388extern void gic_platform_init(int irqs, struct irq_chip *irq_controller); 387extern void gic_platform_init(int irqs, struct irq_chip *irq_controller);
389
390#endif /* _ASM_GICREGS_H */ 388#endif /* _ASM_GICREGS_H */
diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h
index debc8009bd58..47842187ae42 100644
--- a/arch/mips/include/asm/time.h
+++ b/arch/mips/include/asm/time.h
@@ -52,12 +52,11 @@ extern int (*perf_irq)(void);
52 */ 52 */
53extern unsigned int __weak get_c0_compare_int(void); 53extern unsigned int __weak get_c0_compare_int(void);
54extern int r4k_clockevent_init(void); 54extern int r4k_clockevent_init(void);
55extern int smtc_clockevent_init(void);
55 56
56static inline int mips_clockevent_init(void) 57static inline int mips_clockevent_init(void)
57{ 58{
58#ifdef CONFIG_MIPS_MT_SMTC 59#ifdef CONFIG_MIPS_MT_SMTC
59 extern int smtc_clockevent_init(void);
60
61 return smtc_clockevent_init(); 60 return smtc_clockevent_init();
62#elif defined(CONFIG_CEVT_R4K) 61#elif defined(CONFIG_CEVT_R4K)
63 return r4k_clockevent_init(); 62 return r4k_clockevent_init();
@@ -69,9 +68,7 @@ static inline int mips_clockevent_init(void)
69/* 68/*
70 * Initialize the count register as a clocksource 69 * Initialize the count register as a clocksource
71 */ 70 */
72#ifdef CONFIG_CSRC_R4K
73extern int init_r4k_clocksource(void); 71extern int init_r4k_clocksource(void);
74#endif
75 72
76static inline int init_mips_clocksource(void) 73static inline int init_mips_clocksource(void)
77{ 74{