Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68k: remove timer_interrupt() function

This gets passed to a number of init functions, but is
ignored everywhere, so remove the function and change the
mach_sched_init callback to take no arguments.

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+33 -47
+1 -1
arch/m68k/68000/timers.c
··· 91 91 92 92 /***************************************************************************/ 93 93 94 - void hw_timer_init(irq_handler_t handler) 94 + void hw_timer_init(void) 95 95 { 96 96 int ret; 97 97
+2 -2
arch/m68k/amiga/config.c
··· 92 92 93 93 static char amiga_model_name[13] = "Amiga "; 94 94 95 - static void amiga_sched_init(irq_handler_t handler); 95 + static void amiga_sched_init(void); 96 96 static void amiga_get_model(char *model); 97 97 static void amiga_get_hardware_list(struct seq_file *m); 98 98 extern void amiga_mksound(unsigned int count, unsigned int ticks); ··· 483 483 return IRQ_HANDLED; 484 484 } 485 485 486 - static void __init amiga_sched_init(irq_handler_t timer_routine) 486 + static void __init amiga_sched_init(void) 487 487 { 488 488 static struct resource sched_res = { 489 489 .name = "timer", .start = 0x00bfd400, .end = 0x00bfd5ff,
+2 -2
arch/m68k/apollo/config.c
··· 26 26 u_long timer_physaddr; 27 27 u_long apollo_model; 28 28 29 - extern void dn_sched_init(irq_handler_t handler); 29 + extern void dn_sched_init(void); 30 30 extern void dn_init_IRQ(void); 31 31 extern int dn_dummy_hwclk(int, struct rtc_time *); 32 32 extern void dn_dummy_reset(void); ··· 179 179 return IRQ_HANDLED; 180 180 } 181 181 182 - void dn_sched_init(irq_handler_t timer_routine) 182 + void dn_sched_init(void) 183 183 { 184 184 /* program timer 1 */ 185 185 *(volatile unsigned char *)(apollo_timer + 3) = 0x01;
+1 -1
arch/m68k/atari/config.c
··· 77 77 #endif 78 78 79 79 /* atari specific timer functions (in time.c) */ 80 - extern void atari_sched_init(irq_handler_t); 80 + extern void atari_sched_init(void); 81 81 extern int atari_mste_hwclk (int, struct rtc_time *); 82 82 extern int atari_tt_hwclk (int, struct rtc_time *); 83 83
+1 -1
arch/m68k/atari/time.c
··· 56 56 } 57 57 58 58 void __init 59 - atari_sched_init(irq_handler_t timer_routine) 59 + atari_sched_init(void) 60 60 { 61 61 /* set Timer C data Register */ 62 62 st_mfp.tim_dt_c = INT_TICKS;
+2 -2
arch/m68k/bvme6000/config.c
··· 38 38 #include <asm/bvme6000hw.h> 39 39 40 40 static void bvme6000_get_model(char *model); 41 - extern void bvme6000_sched_init(irq_handler_t handler); 41 + extern void bvme6000_sched_init(void); 42 42 extern int bvme6000_hwclk (int, struct rtc_time *); 43 43 extern void bvme6000_reset (void); 44 44 void bvme6000_set_vectors (void); ··· 189 189 * so divide by 8 to get the microsecond result. 190 190 */ 191 191 192 - void bvme6000_sched_init (irq_handler_t timer_routine) 192 + void bvme6000_sched_init (void) 193 193 { 194 194 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; 195 195 unsigned char msr = rtc->msr & 0xc0;
+1 -1
arch/m68k/coldfire/pit.c
··· 136 136 137 137 /***************************************************************************/ 138 138 139 - void hw_timer_init(irq_handler_t handler) 139 + void hw_timer_init(void) 140 140 { 141 141 int ret; 142 142
+1 -1
arch/m68k/coldfire/sltimers.c
··· 118 118 .flags = CLOCK_SOURCE_IS_CONTINUOUS, 119 119 }; 120 120 121 - void hw_timer_init(irq_handler_t handler) 121 + void hw_timer_init(void) 122 122 { 123 123 int r; 124 124
+1 -1
arch/m68k/coldfire/timers.c
··· 107 107 108 108 /***************************************************************************/ 109 109 110 - void hw_timer_init(irq_handler_t handler) 110 + void hw_timer_init(void) 111 111 { 112 112 int r; 113 113
+1 -1
arch/m68k/hp300/time.c
··· 98 98 return ticks; 99 99 } 100 100 101 - void __init hp300_sched_init(irq_handler_t vector) 101 + void __init hp300_sched_init(void) 102 102 { 103 103 out_8(CLOCKBASE + CLKCR2, 0x1); /* select CR1 */ 104 104 out_8(CLOCKBASE + CLKCR1, 0x1); /* reset */
+1 -1
arch/m68k/hp300/time.h
··· 1 - extern void hp300_sched_init(irq_handler_t vector); 1 + extern void hp300_sched_init(void);
+2 -3
arch/m68k/include/asm/machdep.h
··· 12 12 struct rtc_pll_info; 13 13 struct buffer_head; 14 14 15 - extern void (*mach_sched_init) (irq_handler_t handler); 15 + extern void (*mach_sched_init) (void); 16 16 /* machine dependent irq functions */ 17 17 extern void (*mach_init_IRQ) (void); 18 18 extern void (*mach_get_model) (char *model); ··· 33 33 extern void (*mach_beep) (unsigned int, unsigned int); 34 34 35 35 /* Hardware clock functions */ 36 - extern void hw_timer_init(irq_handler_t handler); 37 - extern unsigned long hw_timer_offset(void); 36 + extern void hw_timer_init(void); 38 37 #ifdef CONFIG_HEARTBEAT 39 38 extern void timer_heartbeat(void); 40 39 #else
+1 -1
arch/m68k/kernel/setup_mm.c
··· 82 82 83 83 static char m68k_command_line[CL_SIZE] __initdata; 84 84 85 - void (*mach_sched_init) (irq_handler_t handler) __initdata = NULL; 85 + void (*mach_sched_init) (void) __initdata = NULL; 86 86 /* machine dependent irq functions */ 87 87 void (*mach_init_IRQ) (void) __initdata = NULL; 88 88 void (*mach_get_model) (char *model);
+1 -1
arch/m68k/kernel/setup_no.c
··· 49 49 char __initdata command_line[COMMAND_LINE_SIZE]; 50 50 51 51 /* machine dependent timer functions */ 52 - void (*mach_sched_init)(irq_handler_t handler) __initdata = NULL; 52 + void (*mach_sched_init)(void) __initdata = NULL; 53 53 int (*mach_hwclk) (int, struct rtc_time*); 54 54 55 55 /* machine dependent reboot functions */
+1 -14
arch/m68k/kernel/time.c
··· 35 35 unsigned long (*mach_random_get_entropy)(void); 36 36 EXPORT_SYMBOL_GPL(mach_random_get_entropy); 37 37 38 - 39 - /* 40 - * timer_interrupt() needs to keep up the real-time clock, 41 - * as well as call the "xtime_update()" routine every clocktick 42 - */ 43 - static irqreturn_t timer_interrupt(int irq, void *dummy) 44 - { 45 - xtime_update(1); 46 - update_process_times(user_mode(get_irq_regs())); 47 - profile_tick(CPU_PROFILING); 48 - return IRQ_HANDLED; 49 - } 50 - 51 38 #ifdef CONFIG_HEARTBEAT 52 39 void timer_heartbeat(void) 53 40 { ··· 144 157 145 158 void __init time_init(void) 146 159 { 147 - mach_sched_init(timer_interrupt); 160 + mach_sched_init(); 148 161 }
+3 -3
arch/m68k/mac/config.c
··· 58 58 extern void iop_preinit(void); 59 59 extern void iop_init(void); 60 60 extern void via_init(void); 61 - extern void via_init_clock(irq_handler_t func); 61 + extern void via_init_clock(void); 62 62 extern void oss_init(void); 63 63 extern void psc_init(void); 64 64 extern void baboon_init(void); ··· 69 69 static void mac_identify(void); 70 70 static void mac_report_hardware(void); 71 71 72 - static void __init mac_sched_init(irq_handler_t vector) 72 + static void __init mac_sched_init(void) 73 73 { 74 - via_init_clock(vector); 74 + via_init_clock(); 75 75 } 76 76 77 77 /*
+1 -1
arch/m68k/mac/via.c
··· 609 609 return IRQ_HANDLED; 610 610 } 611 611 612 - void __init via_init_clock(irq_handler_t timer_routine) 612 + void __init via_init_clock(void) 613 613 { 614 614 if (request_irq(IRQ_MAC_TIMER_1, via_timer_handler, IRQF_TIMER, "timer", 615 615 NULL)) {
+2 -2
arch/m68k/mvme147/config.c
··· 37 37 38 38 39 39 static void mvme147_get_model(char *model); 40 - extern void mvme147_sched_init(irq_handler_t handler); 40 + extern void mvme147_sched_init(void); 41 41 extern int mvme147_hwclk (int, struct rtc_time *); 42 42 extern void mvme147_reset (void); 43 43 ··· 125 125 } 126 126 127 127 128 - void mvme147_sched_init (irq_handler_t timer_routine) 128 + void mvme147_sched_init (void) 129 129 { 130 130 if (request_irq(PCC_IRQ_TIMER1, mvme147_timer_int, IRQF_TIMER, 131 131 "timer 1", NULL))
+2 -2
arch/m68k/mvme16x/config.c
··· 43 43 static MK48T08ptr_t volatile rtc = (MK48T08ptr_t)MVME_RTC_BASE; 44 44 45 45 static void mvme16x_get_model(char *model); 46 - extern void mvme16x_sched_init(irq_handler_t handler); 46 + extern void mvme16x_sched_init(void); 47 47 extern int mvme16x_hwclk (int, struct rtc_time *); 48 48 extern void mvme16x_reset (void); 49 49 ··· 384 384 return IRQ_HANDLED; 385 385 } 386 386 387 - void mvme16x_sched_init (irq_handler_t timer_routine) 387 + void mvme16x_sched_init(void) 388 388 { 389 389 uint16_t brdno = be16_to_cpu(mvme_bdid.brdno); 390 390 int irq;
+1 -1
arch/m68k/q40/config.c
··· 37 37 38 38 extern void q40_init_IRQ(void); 39 39 static void q40_get_model(char *model); 40 - extern void q40_sched_init(irq_handler_t handler); 40 + extern void q40_sched_init(void); 41 41 42 42 static int q40_hwclk(int, struct rtc_time *); 43 43 static unsigned int q40_get_ss(void);
+1 -1
arch/m68k/q40/q40ints.c
··· 149 149 return IRQ_HANDLED; 150 150 } 151 151 152 - void q40_sched_init (irq_handler_t timer_routine) 152 + void q40_sched_init (void) 153 153 { 154 154 int timer_irq; 155 155
+2 -2
arch/m68k/sun3/config.c
··· 36 36 37 37 char sun3_reserved_pmeg[SUN3_PMEGS_NUM]; 38 38 39 - static void sun3_sched_init(irq_handler_t handler); 39 + static void sun3_sched_init(void); 40 40 extern void sun3_get_model (char* model); 41 41 extern int sun3_hwclk(int set, struct rtc_time *t); 42 42 ··· 151 151 sun3_bootmem_alloc(memory_start, memory_end); 152 152 } 153 153 154 - static void __init sun3_sched_init(irq_handler_t timer_routine) 154 + static void __init sun3_sched_init(void) 155 155 { 156 156 sun3_disable_interrupts(); 157 157 intersil_clock->cmd_reg=(INTERSIL_RUN|INTERSIL_INT_DISABLE|INTERSIL_24H_MODE);
+1 -1
arch/m68k/sun3x/time.c
··· 90 90 } 91 91 #endif 92 92 93 - void __init sun3x_sched_init(irq_handler_t vector) 93 + void __init sun3x_sched_init(void) 94 94 { 95 95 96 96 sun3_disable_interrupts();
+1 -1
arch/m68k/sun3x/time.h
··· 3 3 #define SUN3X_TIME_H 4 4 5 5 extern int sun3x_hwclk(int set, struct rtc_time *t); 6 - void sun3x_sched_init(irq_handler_t vector); 6 + void sun3x_sched_init(void); 7 7 8 8 struct mostek_dt { 9 9 volatile unsigned char csr;