* [TRIVIAL] Remove reference to timer_exit() from kernel-locking.tmpl, fix typo.
@ 2002-12-06 3:45 Rusty Trivial Russell
0 siblings, 0 replies; only message in thread
From: Rusty Trivial Russell @ 2002-12-06 3:45 UTC (permalink / raw)
To: torvalds, akpm, linux-kernel
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-06 3:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 3:45 [TRIVIAL] Remove reference to timer_exit() from kernel-locking.tmpl, fix typo Rusty Trivial Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®