Skip to content

Commit 38aef31

Browse files
timekeeping: Remove comment that's mostly out of date
Prior to 92bb1fc (Only do nanosecond rounding on GENERIC_TIME_VSYSCALL_OLD systems), the comment here was accuate, but now we can mostly avoid the extra rounding which causes the unlikey to be actually likely here. So remove the out of date comment. Signed-off-by: John Stultz <john.stultz@linaro.org>
1 parent d5a1c7e commit 38aef31

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

kernel/time/timekeeping.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,16 +1134,6 @@ static void timekeeping_adjust(struct timekeeper *tk, s64 offset)
11341134
* we can adjust by 1.
11351135
*/
11361136
error >>= 2;
1137-
/*
1138-
* XXX - In update_wall_time, we round up to the next
1139-
* nanosecond, and store the amount rounded up into
1140-
* the error. This causes the likely below to be unlikely.
1141-
*
1142-
* The proper fix is to avoid rounding up by using
1143-
* the high precision tk->xtime_nsec instead of
1144-
* xtime.tv_nsec everywhere. Fixing this will take some
1145-
* time.
1146-
*/
11471137
if (likely(error <= interval))
11481138
adj = 1;
11491139
else

0 commit comments

Comments
 (0)