mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Thomas Gleixner: "A single fix for a thinko in the raw timekeeper update which causes clock MONOTONIC_RAW to run with erratically increased frequency" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: time: Fix ktime_get_raw() incorrect base accumulation
This commit is contained in:
commit
3b62dc6c38
@ -637,9 +637,7 @@ static inline void tk_update_ktime_data(struct timekeeper *tk)
|
|||||||
tk->ktime_sec = seconds;
|
tk->ktime_sec = seconds;
|
||||||
|
|
||||||
/* Update the monotonic raw base */
|
/* Update the monotonic raw base */
|
||||||
seconds = tk->raw_sec;
|
tk->tkr_raw.base = ns_to_ktime(tk->raw_sec * NSEC_PER_SEC);
|
||||||
nsec = (u32)(tk->tkr_raw.xtime_nsec >> tk->tkr_raw.shift);
|
|
||||||
tk->tkr_raw.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* must hold timekeeper_lock */
|
/* must hold timekeeper_lock */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user