diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-03-26 04:38:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:57:02 -0500 |
commit | 432569bb9d9d424d7ffe5b21f8205c55bdd1aaa8 (patch) | |
tree | da649d202625d061d4fca27a6a63c4f81076724e /include/linux/hrtimer.h | |
parent | 3b98a5328171cebc867f70484b20bd34948cd7f6 (diff) |
[PATCH] hrtimers: simplify nanosleep
nanosleep is the only user of the expired state, so let it manage this itself,
which makes the hrtimer code a bit simpler. The remaining time is also only
calculated if requested.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r-- | include/linux/hrtimer.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 84fc186324e6..0e8f4762f6f8 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -38,9 +38,7 @@ enum hrtimer_restart { | |||
38 | * Timer states: | 38 | * Timer states: |
39 | */ | 39 | */ |
40 | enum hrtimer_state { | 40 | enum hrtimer_state { |
41 | HRTIMER_INACTIVE, /* Timer is inactive */ | 41 | HRTIMER_INACTIVE, /* Timer is inactive */ |
42 | HRTIMER_EXPIRED, /* Timer is expired */ | ||
43 | HRTIMER_RUNNING, /* Timer is running the callback function */ | ||
44 | HRTIMER_PENDING, /* Timer is pending */ | 42 | HRTIMER_PENDING, /* Timer is pending */ |
45 | }; | 43 | }; |
46 | 44 | ||