diff options
| author | Steven J. Hill <Steven.Hill@imgtec.com> | 2013-04-10 17:29:13 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-09 11:55:21 -0400 |
| commit | 2675fa7c7b46842f82b2766b5abe80e16ce32977 (patch) | |
| tree | 7d0f015d938e36e1c8145143ef0608eebe8dd2aa /arch/mips/include | |
| parent | dfa762e1c31c30607e4e5259f287dd3e174cbcc3 (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')
| -rw-r--r-- | arch/mips/include/asm/gic.h | 4 | ||||
| -rw-r--r-- | arch/mips/include/asm/time.h | 5 |
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[]; | |||
| 372 | extern void gic_init(unsigned long gic_base_addr, | 372 | extern 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 | |||
| 376 | extern void gic_clocksource_init(unsigned int); | 375 | extern void gic_clocksource_init(unsigned int); |
| 377 | extern unsigned int gic_get_int(void); | ||
| 378 | extern cycle_t gic_read_count(void); | 376 | extern cycle_t gic_read_count(void); |
| 379 | extern void gic_send_ipi(unsigned int intr); | 377 | extern void gic_send_ipi(unsigned int intr); |
| 380 | extern unsigned int plat_ipi_call_int_xlate(unsigned int); | 378 | extern unsigned int plat_ipi_call_int_xlate(unsigned int); |
| 381 | extern unsigned int plat_ipi_resched_int_xlate(unsigned int); | 379 | extern unsigned int plat_ipi_resched_int_xlate(unsigned int); |
| 382 | extern void gic_bind_eic_interrupt(int irq, int set); | 380 | extern void gic_bind_eic_interrupt(int irq, int set); |
| 383 | extern unsigned int gic_get_timer_pending(void); | 381 | extern unsigned int gic_get_timer_pending(void); |
| 382 | extern unsigned int gic_get_int(void); | ||
| 384 | extern void gic_enable_interrupt(int irq_vec); | 383 | extern void gic_enable_interrupt(int irq_vec); |
| 385 | extern void gic_disable_interrupt(int irq_vec); | 384 | extern void gic_disable_interrupt(int irq_vec); |
| 386 | extern void gic_irq_ack(struct irq_data *d); | 385 | extern void gic_irq_ack(struct irq_data *d); |
| 387 | extern void gic_finish_irq(struct irq_data *d); | 386 | extern void gic_finish_irq(struct irq_data *d); |
| 388 | extern void gic_platform_init(int irqs, struct irq_chip *irq_controller); | 387 | extern 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 | */ |
| 53 | extern unsigned int __weak get_c0_compare_int(void); | 53 | extern unsigned int __weak get_c0_compare_int(void); |
| 54 | extern int r4k_clockevent_init(void); | 54 | extern int r4k_clockevent_init(void); |
| 55 | extern int smtc_clockevent_init(void); | ||
| 55 | 56 | ||
| 56 | static inline int mips_clockevent_init(void) | 57 | static 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 | ||
| 73 | extern int init_r4k_clocksource(void); | 71 | extern int init_r4k_clocksource(void); |
| 74 | #endif | ||
| 75 | 72 | ||
| 76 | static inline int init_mips_clocksource(void) | 73 | static inline int init_mips_clocksource(void) |
| 77 | { | 74 | { |
