Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79702
b: refs/heads/master
c: bbe4d18
h: refs/heads/master
v: v3
  • Loading branch information
john stultz authored and Ingo Molnar committed Jan 30, 2008
1 parent 65e040c commit 795fb06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37a47db8d7f0f38dac5acf5a13abbc8f401707fa
refs/heads/master: bbe4d18ac2e058c56adb0cd71f49d9ed3216a405
6 changes: 4 additions & 2 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ static void change_clocksource(void)

clock->error = 0;
clock->xtime_nsec = 0;
clocksource_calculate_interval(clock, NTP_INTERVAL_LENGTH);
clocksource_calculate_interval(clock,
(unsigned long)(current_tick_length()>>TICK_LENGTH_SHIFT));

tick_clock_notify();

Expand Down Expand Up @@ -243,7 +244,8 @@ void __init timekeeping_init(void)
ntp_clear();

clock = clocksource_get_next();
clocksource_calculate_interval(clock, NTP_INTERVAL_LENGTH);
clocksource_calculate_interval(clock,
(unsigned long)(current_tick_length()>>TICK_LENGTH_SHIFT));
clock->cycle_last = clocksource_read(clock);

xtime.tv_sec = sec;
Expand Down

0 comments on commit 795fb06

Please sign in to comment.