提交 71120f18 编写于 作者: T Thomas Gleixner 提交者: Linus Torvalds

timekeeping: fixup shadow variable argument

clocksource_adjust() has a clock argument, which shadows the file global clock
variable.  Fix this up.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 10146801
...@@ -401,7 +401,7 @@ static __always_inline int clocksource_bigadjust(s64 error, s64 *interval, ...@@ -401,7 +401,7 @@ static __always_inline int clocksource_bigadjust(s64 error, s64 *interval,
* this is optimized for the most common adjustments of -1,0,1, * this is optimized for the most common adjustments of -1,0,1,
* for other values we can do a bit more work. * for other values we can do a bit more work.
*/ */
static void clocksource_adjust(struct clocksource *clock, s64 offset) static void clocksource_adjust(s64 offset)
{ {
s64 error, interval = clock->cycle_interval; s64 error, interval = clock->cycle_interval;
int adj; int adj;
...@@ -476,7 +476,7 @@ void update_wall_time(void) ...@@ -476,7 +476,7 @@ void update_wall_time(void)
} }
/* correct the clock when NTP error is too big */ /* correct the clock when NTP error is too big */
clocksource_adjust(clock, offset); clocksource_adjust(offset);
/* store full nanoseconds into xtime */ /* store full nanoseconds into xtime */
xtime.tv_nsec = (s64)clock->xtime_nsec >> clock->shift; xtime.tv_nsec = (s64)clock->xtime_nsec >> clock->shift;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册