Commit 6afeba7f authored by John Levon's avatar John Levon Committed by Linus Torvalds

[PATCH] OProfile update

We were doing del_timer_sync() on shutdown, but not ensuring that any queued work
was done as well.
parent 47dc44d5
......@@ -147,6 +147,8 @@ void sync_stop(void)
profile_event_unregister(EXIT_MMAP, &exit_mmap_nb);
profile_event_unregister(EXEC_UNMAP, &exec_unmap_nb);
del_timer_sync(&sync_timer);
/* timer might have queued work, make sure it's completed. */
flush_scheduled_work();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment