Commit 3f86f28f authored by John Stultz's avatar John Stultz

time: Fix spelling mistakes in new comments

Fixup spelling issues caught by Richard

CC: Richard Cochran <richardcochran@gmail.com>
CC: Chen Jie <chenj@lemote.com>
CC: Steven Rostedt <rostedt@goodmis.org>
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent c9fad429
...@@ -809,11 +809,11 @@ static void timekeeping_adjust(s64 offset) ...@@ -809,11 +809,11 @@ static void timekeeping_adjust(s64 offset)
* First we shift it down from NTP_SHIFT to clocksource->shifted nsecs. * First we shift it down from NTP_SHIFT to clocksource->shifted nsecs.
* *
* Note we subtract one in the shift, so that error is really error*2. * Note we subtract one in the shift, so that error is really error*2.
* This "saves" dividing(shifting) intererval twice, but keeps the * This "saves" dividing(shifting) interval twice, but keeps the
* (error > interval) comparision as still measuring if error is * (error > interval) comparison as still measuring if error is
* larger then half an interval. * larger then half an interval.
* *
* Note: It does not "save" on aggrivation when reading the code. * Note: It does not "save" on aggravation when reading the code.
*/ */
error = timekeeper.ntp_error >> (timekeeper.ntp_error_shift - 1); error = timekeeper.ntp_error >> (timekeeper.ntp_error_shift - 1);
if (error > interval) { if (error > interval) {
...@@ -829,7 +829,7 @@ static void timekeeping_adjust(s64 offset) ...@@ -829,7 +829,7 @@ static void timekeeping_adjust(s64 offset)
* nanosecond, and store the amount rounded up into * nanosecond, and store the amount rounded up into
* the error. This causes the likely below to be unlikely. * the error. This causes the likely below to be unlikely.
* *
* The properfix is to avoid rounding up by using * The proper fix is to avoid rounding up by using
* the high precision timekeeper.xtime_nsec instead of * the high precision timekeeper.xtime_nsec instead of
* xtime.tv_nsec everywhere. Fixing this will take some * xtime.tv_nsec everywhere. Fixing this will take some
* time. * time.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment