timekeeping: fix bogus comment in timekeeping_get_ns_raw
PATCH 1/1 timekeeping: fix bogus comment in timekeeping_get_ns_raw
The whole point of this function is to return a value not touched by NTP; unfortunately the comment got copied wholesale without adjustment from the timekeeping_get_ns function above.
Signed-off-by Dan McGee <[email protected]>
--- kernel/time/timekeeping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/time/timekeeping.c +1 -1
@@ -131,7 +131,7 @@ static inline s64 timekeeping_get_ns_raw(void)/* calculate the delta since the last update_wall_time: */ cycle_delta = (cycle_now - clock->cycle_last) & clock->mask; -/* return delta convert to nanoseconds using ntp adjusted mult. */ +/* return delta convert to nanoseconds. */ return clocksource_cyc2ns (cycle_delta, clock->mult, clock->shift); }
Signature · 1 line
1.7.7
Quoted 14 lines · Dan McGee
The whole point of this function is to return a value not touched by NTP; unfortunately the comment got copied wholesale without adjustment from the
timekeeping_get_nsfunction above.Signed-off-by Dan McGee <[email protected]>--- kernel/time/timekeeping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)kernel/time/timekeeping.c +0
-0
kernel/time/timekeeping.c static inline s64 timekeeping_get_ns_raw(void) · line 136
Quoted 7 lines
kernel/time/timekeeping.c +1
-1@@ -131,7 +131,7 @@ static inline s64 timekeeping_get_ns_raw(void)/* calculate the delta since the last update_wall_time: */ cycle_delta = (cycle_now - clock->cycle_last) & clock->mask; -/* return delta convert to nanoseconds using ntp adjusted mult. */ +/* return delta convert to nanoseconds. */ return clocksource_cyc2ns (cycle_delta, clock->mult, clock->shift); }
Thanks for catching this! I'll apply it to my queue! -john