diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-01-12 05:47:34 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2006-01-12 05:47:34 -0500 |
commit | c9db4fa11526affde83603fe52595bd1260c1354 (patch) | |
tree | 3064d71209b32569cfbd5dd0907fbe65bcf02d5e /include/linux | |
parent | e2787630c1abb075c935cf47e91beb7c656f48c4 (diff) |
[hrtimer] Enforce resolution as lower limit of intervals
Roman Zippel pointed out that the missing lower limit of intervals
leads to an accounting error in the overrun count. Enforce the lower
limit of intervals to resolution in the timer forwarding code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/hrtimer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 98c5c1537b5d..089bfb1fa01a 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -122,8 +122,7 @@ static inline int hrtimer_active(const struct hrtimer *timer) | |||
122 | } | 122 | } |
123 | 123 | ||
124 | /* Forward a hrtimer so it expires after now: */ | 124 | /* Forward a hrtimer so it expires after now: */ |
125 | extern unsigned long hrtimer_forward(struct hrtimer *timer, | 125 | extern unsigned long hrtimer_forward(struct hrtimer *timer, ktime_t interval); |
126 | const ktime_t interval); | ||
127 | 126 | ||
128 | /* Precise sleep: */ | 127 | /* Precise sleep: */ |
129 | extern long hrtimer_nanosleep(struct timespec *rqtp, | 128 | extern long hrtimer_nanosleep(struct timespec *rqtp, |