mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[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 <[email protected]> Acked-by: Ingo Molnar <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
3b98a53281
commit
432569bb9d
2 files changed
+63
-83
No files matched your search
@@ -38,9 +38,7 @@ enum hrtimer_restart {
|
||||
* Timer states:
|
||||
*/
|
||||
enum hrtimer_state {
|
||||
HRTIMER_INACTIVE, /* Timer is inactive */
|
||||
HRTIMER_EXPIRED, /* Timer is expired */
|
||||
HRTIMER_RUNNING, /* Timer is running the callback function */
|
||||
HRTIMER_INACTIVE, /* Timer is inactive */
|
||||
HRTIMER_PENDING, /* Timer is pending */
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user