tsc.c (5a2dd72abdae75ea2960145e0549635ce4e0be96) | tsc.c (3e5095d15276efd14a45393666b1bb7536bf179f) |
---|---|
1#include <linux/kernel.h> 2#include <linux/sched.h> 3#include <linux/init.h> 4#include <linux/module.h> 5#include <linux/timer.h> 6#include <linux/acpi_pmtmr.h> 7#include <linux/cpufreq.h> 8#include <linux/dmi.h> --- 759 unchanged lines hidden (view full) --- 768 * Make an educated guess if the TSC is trustworthy and synchronized 769 * over all CPUs. 770 */ 771__cpuinit int unsynchronized_tsc(void) 772{ 773 if (!cpu_has_tsc || tsc_unstable) 774 return 1; 775 | 1#include <linux/kernel.h> 2#include <linux/sched.h> 3#include <linux/init.h> 4#include <linux/module.h> 5#include <linux/timer.h> 6#include <linux/acpi_pmtmr.h> 7#include <linux/cpufreq.h> 8#include <linux/dmi.h> --- 759 unchanged lines hidden (view full) --- 768 * Make an educated guess if the TSC is trustworthy and synchronized 769 * over all CPUs. 770 */ 771__cpuinit int unsynchronized_tsc(void) 772{ 773 if (!cpu_has_tsc || tsc_unstable) 774 return 1; 775 |
776#ifdef CONFIG_X86_SMP | 776#ifdef CONFIG_SMP |
777 if (apic_is_clustered_box()) 778 return 1; 779#endif 780 781 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) 782 return 0; 783 /* 784 * Intel systems are normally all synchronized. --- 81 unchanged lines hidden --- | 777 if (apic_is_clustered_box()) 778 return 1; 779#endif 780 781 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) 782 return 0; 783 /* 784 * Intel systems are normally all synchronized. --- 81 unchanged lines hidden --- |