patch-2.4.21 linux-2.4.21/Documentation/DocBook/kernel-locking.tmpl

Next file: linux-2.4.21/Documentation/DocBook/mousedrivers.tmpl
Previous file: linux-2.4.21/Documentation/DocBook/kernel-hacking.tmpl
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/Documentation/DocBook/kernel-locking.tmpl linux-2.4.21/Documentation/DocBook/kernel-locking.tmpl
@@ -1055,10 +1055,8 @@
       Another common problem is deleting timers which restart
       themselves (by calling <function>add_timer()</function> at the end 
       of their timer function).  Because this is a fairly common case 
-      which is prone to races, you can put a call to
-      <function>timer_exit()</function> at the very end of your timer function,
-      and user <function>del_timer_sync()</function> 
-      (<filename class=headerfile>include/linux/timer.h</filename>)
+      which is prone to races, you should use <function>del_timer_sync()</function> 
+      (<filename class=headerfile>include/linux/timer.h</filename>) 
       to handle this case.  It returns the number of times the timer 
       had to be deleted before we finally stopped it from adding itself back 
       in.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)