Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163058
b: refs/heads/master
c: 1be3967
h: refs/heads/master
v: v3
  • Loading branch information
Martin Schwidefsky authored and Thomas Gleixner committed Aug 15, 2009
1 parent f95935f commit f718afc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: a0f7d48bfb95a4c5172a2756dbc4b82afc8e9ae4
refs/heads/master: 1be396794897f80bfc8774719ba60309a9e3d374
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,16 @@ static cycle_t __vsyscall_fn vread_tsc(void)
}
#endif

static void resume_tsc(void)
{
clocksource_tsc.cycle_last = 0;
}

static struct clocksource clocksource_tsc = {
.name = "tsc",
.rating = 300,
.read = read_tsc,
.resume = resume_tsc,
.mask = CLOCKSOURCE_MASK(64),
.shift = 22,
.flags = CLOCK_SOURCE_IS_CONTINUOUS |
Expand Down
1 change: 0 additions & 1 deletion trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ static void change_clocksource(void)
if (old->disable)
old->disable(old);

clock->cycle_last = 0;
clock->cycle_last = clock->read(clock);
clock->error = 0;
clock->xtime_nsec = 0;
Expand Down

0 comments on commit f718afc

Please sign in to comment.