diff options
Diffstat (limited to 'arch/sh/kernel/time.c')
-rw-r--r-- | arch/sh/kernel/time.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 1fbb83c665dd..57e708d7b52d 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c | |||
@@ -109,13 +109,14 @@ static long last_rtc_update; | |||
109 | * handle_timer_tick() needs to keep up the real-time clock, | 109 | * handle_timer_tick() needs to keep up the real-time clock, |
110 | * as well as call the "do_timer()" routine every clocktick | 110 | * as well as call the "do_timer()" routine every clocktick |
111 | */ | 111 | */ |
112 | void handle_timer_tick(struct pt_regs *regs) | 112 | void handle_timer_tick(void) |
113 | { | 113 | { |
114 | do_timer(1); | 114 | do_timer(1); |
115 | #ifndef CONFIG_SMP | 115 | #ifndef CONFIG_SMP |
116 | update_process_times(user_mode(regs)); | 116 | update_process_times(user_mode(get_irq_regs())); |
117 | #endif | 117 | #endif |
118 | profile_tick(CPU_PROFILING, regs); | 118 | if (current->pid) |
119 | profile_tick(CPU_PROFILING); | ||
119 | 120 | ||
120 | #ifdef CONFIG_HEARTBEAT | 121 | #ifdef CONFIG_HEARTBEAT |
121 | if (sh_mv.mv_heartbeat != NULL) | 122 | if (sh_mv.mv_heartbeat != NULL) |