Commit 1775a3e9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] asm-i386/timer.h docu cleanup

From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>

This patch fixes a typo (intruupt), a possible confusion (ms should be
microseconds here, not milli), and adds descriptions for the missing
functions.
Signed-off-by: default avatarAdam Lackorzynski <adam@os.inf.tu-dresden.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5fcef9cb
...@@ -4,11 +4,16 @@ ...@@ -4,11 +4,16 @@
/** /**
* struct timer_ops - used to define a timer source * struct timer_ops - used to define a timer source
* *
* @name: name of the timer.
* @init: Probes and initializes the timer. Takes clock= override * @init: Probes and initializes the timer. Takes clock= override
* string as an argument. Returns 0 on success, anything else on failure. * string as an argument. Returns 0 on success, anything else
* @mark_offset: called by the timer interrupt * on failure.
* @get_offset: called by gettimeofday(). Returns the number of ms since the * @mark_offset: called by the timer interrupt.
* last timer intruupt. * @get_offset: called by gettimeofday(). Returns the number of microseconds
* since the last timer interupt.
* @monotonic_clock: returns the number of nanoseconds since the init of the
* timer.
* @delay: delays this many clock cycles.
*/ */
struct timer_opts{ struct timer_opts{
char* name; char* name;
......
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