Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d59b949f authored by Pavel Machek's avatar Pavel Machek Committed by Thomas Gleixner
Browse files

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: default avatarPavel Machek <Pavel@suse.cz>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 029a07e0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -219,6 +219,7 @@ int queue_delayed_work_on(int cpu, struct workqueue_struct *wq,
	struct timer_list *timer = &dwork->timer;
	struct work_struct *work = &dwork->work;

	timer_stats_timer_set_start_info(&dwork->timer);
	if (!test_and_set_bit(WORK_STRUCT_PENDING, work_data_bits(work))) {
		BUG_ON(timer_pending(timer));
		BUG_ON(!list_empty(&work->entry));
@@ -580,6 +581,7 @@ EXPORT_SYMBOL(schedule_delayed_work);
int schedule_delayed_work_on(int cpu,
			struct delayed_work *dwork, unsigned long delay)
{
	timer_stats_timer_set_start_info(&dwork->timer);
	return queue_delayed_work_on(cpu, keventd_wq, dwork, delay);
}
EXPORT_SYMBOL(schedule_delayed_work_on);