]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] OProfile update
authorJohn Levon <levon@movementarian.org>
Sat, 3 May 2003 11:42:38 +0000 (04:42 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 3 May 2003 11:42:38 +0000 (04:42 -0700)
We were doing del_timer_sync() on shutdown, but not ensuring that any queued work
was done as well.

drivers/oprofile/buffer_sync.c

index a10eecb5a8ad026bf53411ad50e9e436040fd274..1b1fd3e7ab591b34daa7c78cca3dda8fa9b3f811 100644 (file)
@@ -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();
 }