Commit d59b949f771eb3cbe50865c72e13e2a0a8d4d781

Authored by Pavel Machek
Committed by Thomas Gleixner
1 parent 029a07e031

timer_list: add annotations to workqueue.c

Add timer list annotations to workqueue.c so we can see the call site
in the timer stats.

Signed-off-by: Pavel Machek <Pavel@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -219,6 +219,7 @@
219 219 struct timer_list *timer = &dwork->timer;
220 220 struct work_struct *work = &dwork->work;
221 221  
  222 + timer_stats_timer_set_start_info(&dwork->timer);
222 223 if (!test_and_set_bit(WORK_STRUCT_PENDING, work_data_bits(work))) {
223 224 BUG_ON(timer_pending(timer));
224 225 BUG_ON(!list_empty(&work->entry));
... ... @@ -580,6 +581,7 @@
580 581 int schedule_delayed_work_on(int cpu,
581 582 struct delayed_work *dwork, unsigned long delay)
582 583 {
  584 + timer_stats_timer_set_start_info(&dwork->timer);
583 585 return queue_delayed_work_on(cpu, keventd_wq, dwork, delay);
584 586 }
585 587 EXPORT_SYMBOL(schedule_delayed_work_on);