Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Lasat: Replace del_timer by del_timer_sync

Use del_timer_sync to ensure that the timer is stopped on all CPUs before
the driver exists.

This change was suggested by Thomas Gleixner

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
declarer name module_exit;
identifier ex;
@@

module_exit(ex);

@@
identifier r.ex;
@@

ex(...) {
<...
- del_timer
+ del_timer_sync
(...)
...>
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: kernel-janitors@vger.kernel.org
Cc: tglx@linutronix.de
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/6663/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Julia Lawall and committed by
Ralf Baechle
49992cb1 fa12b773

+1 -1
+1 -1
arch/mips/lasat/picvue_proc.c
··· 175 175 remove_proc_entry("scroll", pvc_display_dir); 176 176 remove_proc_entry(DISPLAY_DIR_NAME, NULL); 177 177 178 - del_timer(&timer); 178 + del_timer_sync(&timer); 179 179 } 180 180 181 181 static int __init pvc_proc_init(void)