Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32891
b: refs/heads/master
c: 0e5f61b
h: refs/heads/master
i:
  32889: aeda4f4
  32887: 44a0640
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jul 30, 2006
1 parent 7b88e03 commit 6545c8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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: 260f659b232b17889e3f0c9bf411675898b222c2
refs/heads/master: 0e5f61b00c577da698fb00cd9c91a96b79044dfd
16 changes: 12 additions & 4 deletions trunk/arch/x86_64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <linux/acpi.h>
#ifdef CONFIG_ACPI
#include <acpi/achware.h> /* for PM timer frequency */
#include <acpi/acpi_bus.h>
#endif
#include <asm/8253pit.h>
#include <asm/pgtable.h>
Expand Down Expand Up @@ -953,11 +954,18 @@ __cpuinit int unsynchronized_tsc(void)
#ifdef CONFIG_SMP
if (apic_is_clustered_box())
return 1;
/* Intel systems are normally all synchronized. Exceptions
are handled in the check above. */
if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL)
return 0;
#endif
/* Most intel systems have synchronized TSCs except for
multi node systems */
if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) {
#ifdef CONFIG_ACPI
/* But TSC doesn't tick in C3 so don't use it there */
if (acpi_fadt.length > 0 && acpi_fadt.plvl3_lat < 100)
return 1;
#endif
return 0;
}

/* Assume multi socket systems are not synchronized */
return num_present_cpus() > 1;
}
Expand Down

0 comments on commit 6545c8c

Please sign in to comment.