Skip to content

Commit 7f4bde9

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[PATCH] remove the second arg of do_timer_interrupt()
The second arg of do_timer_interrupt() is not used in the functions, and all callers pass NULL. Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: Paul Mundt <lethal@Linux-SH.ORG> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 2832e93 commit 7f4bde9

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎arch/i386/kernel/time.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ EXPORT_SYMBOL(profile_pc);
252252
* timer_interrupt() needs to keep up the real-time clock,
253253
* as well as call the "do_timer()" routine every clocktick
254254
*/
255-
static inline void do_timer_interrupt(int irq, void *dev_id,
256-
struct pt_regs *regs)
255+
static inline void do_timer_interrupt(int irq, struct pt_regs *regs)
257256
{
258257
#ifdef CONFIG_X86_IO_APIC
259258
if (timer_ack) {
@@ -307,7 +306,7 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
307306

308307
cur_timer->mark_offset();
309308

310-
do_timer_interrupt(irq, NULL, regs);
309+
do_timer_interrupt(irq, regs);
311310

312311
write_sequnlock(&xtime_lock);
313312
return IRQ_HANDLED;

‎arch/sh/kernel/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static long last_rtc_update;
234234
* timer_interrupt() needs to keep up the real-time clock,
235235
* as well as call the "do_timer()" routine every clocktick
236236
*/
237-
static inline void do_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
237+
static inline void do_timer_interrupt(int irq, struct pt_regs *regs)
238238
{
239239
do_timer(regs);
240240
#ifndef CONFIG_SMP
@@ -285,7 +285,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
285285
* locally disabled. -arca
286286
*/
287287
write_seqlock(&xtime_lock);
288-
do_timer_interrupt(irq, NULL, regs);
288+
do_timer_interrupt(irq, regs);
289289
write_sequnlock(&xtime_lock);
290290

291291
return IRQ_HANDLED;

‎arch/sh64/kernel/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static long last_rtc_update = 0;
303303
* timer_interrupt() needs to keep up the real-time clock,
304304
* as well as call the "do_timer()" routine every clocktick
305305
*/
306-
static inline void do_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
306+
static inline void do_timer_interrupt(int irq, struct pt_regs *regs)
307307
{
308308
unsigned long long current_ctc;
309309
asm ("getcon cr62, %0" : "=r" (current_ctc));
@@ -361,7 +361,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
361361
* locally disabled. -arca
362362
*/
363363
write_lock(&xtime_lock);
364-
do_timer_interrupt(irq, NULL, regs);
364+
do_timer_interrupt(irq, regs);
365365
write_unlock(&xtime_lock);
366366

367367
return IRQ_HANDLED;

0 commit comments

Comments
 (0)