aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/timer.c')
-rw-r--r--kernel/time/timer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 1540af9f62eb..3398d93c74a7 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -404,15 +404,12 @@ void __timer_stats_timer_set_start_info(struct timer_list *timer, void *addr)
404 404
405static void timer_stats_account_timer(struct timer_list *timer) 405static void timer_stats_account_timer(struct timer_list *timer)
406{ 406{
407 unsigned int flag = 0;
408
409 if (likely(!timer->start_site)) 407 if (likely(!timer->start_site))
410 return; 408 return;
411 if (unlikely(timer->flags & TIMER_DEFERRABLE))
412 flag |= TIMER_STATS_FLAG_DEFERRABLE;
413 409
414 timer_stats_update_stats(timer, timer->start_pid, timer->start_site, 410 timer_stats_update_stats(timer, timer->start_pid, timer->start_site,
415 timer->function, timer->start_comm, flag); 411 timer->function, timer->start_comm,
412 timer->flags);
416} 413}
417 414
418#else 415#else