aboutsummaryrefslogtreecommitdiffstats
path: root/arch
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
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')
-rw-r--r--arch/mips/include/asm/gic.h4
-rw-r--r--arch/mips/include/asm/time.h5
-rw-r--r--arch/mips/kernel/cevt-r4k.c3
3 files changed, 2 insertions, 10 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{
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index 07b847d77f5d..0309aefbf713 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -23,7 +23,6 @@
23 */ 23 */
24 24
25#ifndef CONFIG_MIPS_MT_SMTC 25#ifndef CONFIG_MIPS_MT_SMTC
26
27static int mips_next_event(unsigned long delta, 26static int mips_next_event(unsigned long delta,
28 struct clock_event_device *evt) 27 struct clock_event_device *evt)
29{ 28{
@@ -49,7 +48,6 @@ DEFINE_PER_CPU(struct clock_event_device, mips_clockevent_device);
49int cp0_timer_irq_installed; 48int cp0_timer_irq_installed;
50 49
51#ifndef CONFIG_MIPS_MT_SMTC 50#ifndef CONFIG_MIPS_MT_SMTC
52
53irqreturn_t c0_compare_interrupt(int irq, void *dev_id) 51irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
54{ 52{
55 const int r2 = cpu_has_mips_r2; 53 const int r2 = cpu_has_mips_r2;
@@ -166,7 +164,6 @@ int c0_compare_int_usable(void)
166} 164}
167 165
168#ifndef CONFIG_MIPS_MT_SMTC 166#ifndef CONFIG_MIPS_MT_SMTC
169
170int __cpuinit r4k_clockevent_init(void) 167int __cpuinit r4k_clockevent_init(void)
171{ 168{
172 unsigned int cpu = smp_processor_id(); 169 unsigned int cpu = smp_processor_id();