Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366173
b: refs/heads/master
c: 82f9c08
h: refs/heads/master
i:
  366171: 24daab9
v: v3
  • Loading branch information
Feng Tang authored and John Stultz committed Mar 15, 2013
1 parent fa9124b commit df4dbb9
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 5caf4636259ae3af0efbb9bfc4cd97874b547c7d
refs/heads/master: 82f9c080b22a5b859ae2b50822dfb6b812898fdb
6 changes: 5 additions & 1 deletion trunk/arch/x86/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,8 @@ static cycle_t read_tsc(struct clocksource *cs)

static void resume_tsc(struct clocksource *cs)
{
clocksource_tsc.cycle_last = 0;
if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC_S3))
clocksource_tsc.cycle_last = 0;
}

static struct clocksource clocksource_tsc = {
Expand Down Expand Up @@ -939,6 +940,9 @@ static int __init init_tsc_clocksource(void)
clocksource_tsc.flags &= ~CLOCK_SOURCE_IS_CONTINUOUS;
}

if (boot_cpu_has(X86_FEATURE_NONSTOP_TSC_S3))
clocksource_tsc.flags |= CLOCK_SOURCE_SUSPEND_NONSTOP;

/*
* Trust the results of the earlier calibration on systems
* exporting a reliable TSC.
Expand Down

0 comments on commit df4dbb9

Please sign in to comment.