Skip to content

Commit 1d9ef3e

Browse files
atsushi-nemotoralfbaechle
authored andcommitted
[MIPS] Kill duplicated setup_irq() for cp0 timer
Also many plat_timer_setup() can be killed too. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent d527eef commit 1d9ef3e

11 files changed

Lines changed: 0 additions & 82 deletions

File tree

‎arch/mips/bcm47xx/time.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,3 @@ void __init plat_time_init(void)
4646
/* Set MIPS counter frequency for fixed_rate_gettimeoffset() */
4747
mips_hpt_frequency = hz;
4848
}
49-
50-
void __init
51-
plat_timer_setup(struct irqaction *irq)
52-
{
53-
/* Enable the timer interrupt */
54-
setup_irq(7, irq);
55-
}

‎arch/mips/emma2rh/markeins/setup.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ void __init plat_time_init(void)
104104
mips_hpt_frequency = (bus_frequency * (4 + reg)) / 4 / 2;
105105
}
106106

107-
void __init plat_timer_setup(struct irqaction *irq)
108-
{
109-
/* we are using the cpu counter for timer interrupts */
110-
setup_irq(CPU_IRQ_BASE + 7, irq);
111-
}
112-
113107
static void markeins_board_init(void);
114108
extern void markeins_irq_setup(void);
115109

‎arch/mips/lemote/lm2e/setup.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ unsigned long bus_clock;
5353
unsigned int memsize;
5454
unsigned int highmemsize = 0;
5555

56-
void __init plat_timer_setup(struct irqaction *irq)
57-
{
58-
setup_irq(MIPS_CPU_IRQ_BASE + 7, irq);
59-
}
60-
6156
void __init plat_time_init(void)
6257
{
6358
/* setup mips r4k timer */

‎arch/mips/pmc-sierra/msp71xx/msp_time.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,5 @@ void __init plat_timer_setup(struct irqaction *irq)
8686
#ifdef CONFIG_IRQ_MSP_CIC
8787
/* we are using the vpe0 counter for timer interrupts */
8888
setup_irq(MSP_INT_VPE0_TIMER, irq);
89-
#else
90-
/* we are using the mips counter for timer interrupts */
91-
setup_irq(MSP_INT_TIMER, irq);
9289
#endif
9390
}

‎arch/mips/pmc-sierra/yosemite/setup.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ int rtc_mips_set_time(unsigned long tim)
137137
return 0;
138138
}
139139

140-
void __init plat_timer_setup(struct irqaction *irq)
141-
{
142-
setup_irq(7, irq);
143-
}
144-
145140
void __init plat_time_init(void)
146141
{
147142
mips_hpt_frequency = cpu_clock_freq / 2;

‎arch/mips/sni/time.c‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,6 @@ void __init plat_time_init(void)
121121
setup_pit_timer();
122122
}
123123

124-
/*
125-
* R4k counter based timer interrupt. Works on RM200-225 and possibly
126-
* others but not on RM400
127-
*/
128-
static void __init sni_cpu_timer_setup(struct irqaction *irq)
129-
{
130-
setup_irq(SNI_MIPS_IRQ_CPU_TIMER, irq);
131-
}
132-
133124
void __init plat_timer_setup(struct irqaction *irq)
134125
{
135126
switch (sni_brd_type) {
@@ -139,15 +130,6 @@ void __init plat_timer_setup(struct irqaction *irq)
139130
case SNI_BRD_MINITOWER:
140131
sni_a20r_timer_setup(irq);
141132
break;
142-
143-
case SNI_BRD_PCI_TOWER:
144-
case SNI_BRD_RM200:
145-
case SNI_BRD_PCI_MTOWER:
146-
case SNI_BRD_PCI_DESKTOP:
147-
case SNI_BRD_PCI_TOWER_CPLUS:
148-
case SNI_BRD_PCI_MTOWER_CPLUS:
149-
sni_cpu_timer_setup(irq);
150-
break;
151133
}
152134
}
153135

‎arch/mips/tx4927/common/tx4927_setup.c‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,6 @@ void __init plat_time_init(void)
7272
#endif
7373
}
7474

75-
void __init plat_timer_setup(struct irqaction *irq)
76-
{
77-
setup_irq(TX4927_IRQ_CPU_TIMER, irq);
78-
79-
#ifdef CONFIG_TOSHIBA_RBTX4927
80-
{
81-
extern void toshiba_rbtx4927_timer_setup(struct irqaction
82-
*irq);
83-
toshiba_rbtx4927_timer_setup(irq);
84-
}
85-
#endif
86-
87-
return;
88-
}
89-
90-
9175
#ifdef DEBUG
9276
void print_cp0(char *key, int num, char *name, u32 val)
9377
{

‎arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
#define TOSHIBA_RBTX4927_SETUP_EFWFU ( 1 << 3 )
9595
#define TOSHIBA_RBTX4927_SETUP_SETUP ( 1 << 4 )
9696
#define TOSHIBA_RBTX4927_SETUP_TIME_INIT ( 1 << 5 )
97-
#define TOSHIBA_RBTX4927_SETUP_TIMER_SETUP ( 1 << 6 )
9897
#define TOSHIBA_RBTX4927_SETUP_PCIBIOS ( 1 << 7 )
9998
#define TOSHIBA_RBTX4927_SETUP_PCI1 ( 1 << 8 )
10099
#define TOSHIBA_RBTX4927_SETUP_PCI2 ( 1 << 9 )
@@ -108,7 +107,6 @@ static const u32 toshiba_rbtx4927_setup_debug_flag =
108107
(TOSHIBA_RBTX4927_SETUP_NONE | TOSHIBA_RBTX4927_SETUP_INFO |
109108
TOSHIBA_RBTX4927_SETUP_WARN | TOSHIBA_RBTX4927_SETUP_EROR |
110109
TOSHIBA_RBTX4927_SETUP_EFWFU | TOSHIBA_RBTX4927_SETUP_SETUP |
111-
TOSHIBA_RBTX4927_SETUP_TIME_INIT | TOSHIBA_RBTX4927_SETUP_TIMER_SETUP
112110
| TOSHIBA_RBTX4927_SETUP_PCIBIOS | TOSHIBA_RBTX4927_SETUP_PCI1 |
113111
TOSHIBA_RBTX4927_SETUP_PCI2 | TOSHIBA_RBTX4927_SETUP_PCI66);
114112
#endif
@@ -947,14 +945,6 @@ toshiba_rbtx4927_time_init(void)
947945

948946
}
949947

950-
void __init toshiba_rbtx4927_timer_setup(struct irqaction *irq)
951-
{
952-
TOSHIBA_RBTX4927_SETUP_DPRINTK(TOSHIBA_RBTX4927_SETUP_TIMER_SETUP,
953-
"-\n");
954-
TOSHIBA_RBTX4927_SETUP_DPRINTK(TOSHIBA_RBTX4927_SETUP_TIMER_SETUP,
955-
"+\n");
956-
}
957-
958948
static int __init toshiba_rbtx4927_rtc_init(void)
959949
{
960950
static struct resource __initdata res = {

‎arch/mips/tx4938/common/setup.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,3 @@ plat_mem_setup(void)
4343
{
4444
toshiba_rbtx4938_setup();
4545
}
46-
47-
void __init plat_timer_setup(struct irqaction *irq)
48-
{
49-
setup_irq(TX4938_IRQ_CPU_TIMER, irq);
50-
}

‎arch/mips/vr41xx/common/init.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ void __init plat_time_init(void)
4848
mips_hpt_frequency = tclock / 4;
4949
}
5050

51-
void __init plat_timer_setup(struct irqaction *irq)
52-
{
53-
setup_irq(TIMER_IRQ, irq);
54-
}
55-
5651
void __init plat_mem_setup(void)
5752
{
5853
vr41xx_calculate_clock_frequency();

0 commit comments

Comments
 (0)