Commit f9a1f09f authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Remove reference to timer_exit() from kernel-locking.tmpl, fix typo.

From:  Tommi Virtanen <tv@debian.org>

  	timer_exit() isn't a public function, and doesn't even exist in 2.5.
  	2.4 calls it internally after timers. It seems timer users need not
  	do anything special.
parent 95eabe6d
...@@ -1055,10 +1055,8 @@ ...@@ -1055,10 +1055,8 @@
Another common problem is deleting timers which restart Another common problem is deleting timers which restart
themselves (by calling <function>add_timer()</function> at the end themselves (by calling <function>add_timer()</function> at the end
of their timer function). Because this is a fairly common case of their timer function). Because this is a fairly common case
which is prone to races, you can put a call to which is prone to races, you should use <function>del_timer_sync()</function>
<function>timer_exit()</function> at the very end of your timer function, (<filename class=headerfile>include/linux/timer.h</filename>)
and user <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 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 had to be deleted before we finally stopped it from adding itself back
in. in.
......
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