Skip to contentSkip to conversation

PATCH: fix comments in <linux/timer.h>

PATCH Tim Wright 1 participant 1 message Mar 24, 2001

lore
Share & tools
lore

Tim Wright

author
#0 lore raw

Micro patchlet :-)
In wandering around the kernel recently, I found that <linux/timer.h> contains stale comments at the head of the file relating to the old static timers which were deleted for 2.4.
So, here's a trivial patch to try to bring things back in sync.

Regards,

Tim

timer.h renamed from timer.h.2.4.2 +6 -10
@@ -5,17 +5,13 @@
 #include <linux/list.h>
 
 /*
- * This is completely separate from the above, and is the
- * "new and improved" way of handling timers more dynamically.
- * Hopefully efficient and general enough for most things.
+ * In Linux 2.4, static timers have been removed from the kernel.
+ * Timers may be dynamically created and destroyed, and should be initialized
+ * by a call to init_timer() upon creation.
  *
- * The "hardcoded" timers above are still useful for well-
- * defined problems, but the timer-list is probably better
- * when you need multiple outstanding timers or similar.
- *
- * The "data" field is in case you want to use the same
- * timeout function for several timeouts. You can use this
- * to distinguish between the different invocations.
+ * The "data" field enables use of a common timeout function for several
+ * timeouts. You can use this field to distinguish between the different
+ * invocations.
  */
 struct timer_list {
 	struct list_head list;
Signature · 4 lines
Tim Wright - [email protected] or [email protected] or [email protected]
IBM Linux Technology Center, Beaverton, Oregon
Interested in Linux scalability ? Look at http://lse.sourceforge.net/
"Nobody ever said I was charming, they said "Rimmer, you're a git!"" RD VI