lkml.org 
[lkml]   [2002]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[TRIVIAL] Remove reference to timer_exit() from kernel-locking.tmpl, fix typo.
Date
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.


--- trivial-2.5-bk/Documentation/DocBook/kernel-locking.tmpl.orig 2002-12-06 13:56:55.000000000 +1100
+++ trivial-2.5-bk/Documentation/DocBook/kernel-locking.tmpl 2002-12-06 13:56:55.000000000 +1100
@@ -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.
--
Don't blame me: the Monkey is driving
File: Tommi Virtanen <tv@debian.org>: Remove reference to timer_exit() from kernel-locking.tmpl, fix typo.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.026 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site