diff options
author | Vojtech Pavlik <vojtech@suse.cz> | 2006-06-26 07:58:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 13:48:19 -0400 |
commit | f8bf3c65a962530821fa9a9b4bad43d8c7e13574 (patch) | |
tree | b52d7fa60f52e877abced7470e705a6a544701b9 | |
parent | 05ebb76109f302b949e745724bbf0f0634dba43f (diff) |
[PATCH] x86_64: Rename oem_force_hpet_timer to apic_is_clustered_box
Rename oem_force_hpet_timer to apic_is_clustered_box, to give the
function a better fitting name - it really isn't at all about HPET.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/x86_64/kernel/apic.c | 7 | ||||
-rw-r--r-- | arch/x86_64/kernel/time.c | 4 | ||||
-rw-r--r-- | include/asm-x86_64/hpet.h | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/arch/x86_64/kernel/apic.c b/arch/x86_64/kernel/apic.c index 29ef99001e05..53fc17d894e8 100644 --- a/arch/x86_64/kernel/apic.c +++ b/arch/x86_64/kernel/apic.c | |||
@@ -983,7 +983,7 @@ void smp_apic_timer_interrupt(struct pt_regs *regs) | |||
983 | } | 983 | } |
984 | 984 | ||
985 | /* | 985 | /* |
986 | * oem_force_hpet_timer -- force HPET mode for some boxes. | 986 | * apic_is_clustered_box() -- Check if we can expect good TSC |
987 | * | 987 | * |
988 | * Thus far, the major user of this is IBM's Summit2 series: | 988 | * Thus far, the major user of this is IBM's Summit2 series: |
989 | * | 989 | * |
@@ -991,7 +991,7 @@ void smp_apic_timer_interrupt(struct pt_regs *regs) | |||
991 | * multi-chassis. Use available data to take a good guess. | 991 | * multi-chassis. Use available data to take a good guess. |
992 | * If in doubt, go HPET. | 992 | * If in doubt, go HPET. |
993 | */ | 993 | */ |
994 | __cpuinit int oem_force_hpet_timer(void) | 994 | __cpuinit int apic_is_clustered_box(void) |
995 | { | 995 | { |
996 | int i, clusters, zeros; | 996 | int i, clusters, zeros; |
997 | unsigned id; | 997 | unsigned id; |
@@ -1022,8 +1022,7 @@ __cpuinit int oem_force_hpet_timer(void) | |||
1022 | } | 1022 | } |
1023 | 1023 | ||
1024 | /* | 1024 | /* |
1025 | * If clusters > 2, then should be multi-chassis. Return 1 for HPET. | 1025 | * If clusters > 2, then should be multi-chassis. |
1026 | * Else return 0 to use TSC. | ||
1027 | * May have to revisit this when multi-core + hyperthreaded CPUs come | 1026 | * May have to revisit this when multi-core + hyperthreaded CPUs come |
1028 | * out, but AFAIK this will work even for them. | 1027 | * out, but AFAIK this will work even for them. |
1029 | */ | 1028 | */ |
diff --git a/arch/x86_64/kernel/time.c b/arch/x86_64/kernel/time.c index 7392570f975d..54b14e3ef66f 100644 --- a/arch/x86_64/kernel/time.c +++ b/arch/x86_64/kernel/time.c | |||
@@ -956,10 +956,10 @@ void __init time_init(void) | |||
956 | __cpuinit int unsynchronized_tsc(void) | 956 | __cpuinit int unsynchronized_tsc(void) |
957 | { | 957 | { |
958 | #ifdef CONFIG_SMP | 958 | #ifdef CONFIG_SMP |
959 | if (oem_force_hpet_timer()) | 959 | if (apic_is_clustered_box()) |
960 | return 1; | 960 | return 1; |
961 | /* Intel systems are normally all synchronized. Exceptions | 961 | /* Intel systems are normally all synchronized. Exceptions |
962 | are handled in the OEM check above. */ | 962 | are handled in the check above. */ |
963 | if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) | 963 | if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) |
964 | return 0; | 964 | return 0; |
965 | #endif | 965 | #endif |
diff --git a/include/asm-x86_64/hpet.h b/include/asm-x86_64/hpet.h index 18ff7ee9e774..b39098408b69 100644 --- a/include/asm-x86_64/hpet.h +++ b/include/asm-x86_64/hpet.h | |||
@@ -55,7 +55,7 @@ | |||
55 | 55 | ||
56 | extern int is_hpet_enabled(void); | 56 | extern int is_hpet_enabled(void); |
57 | extern int hpet_rtc_timer_init(void); | 57 | extern int hpet_rtc_timer_init(void); |
58 | extern int oem_force_hpet_timer(void); | 58 | extern int apic_is_clustered_box(void); |
59 | 59 | ||
60 | extern int hpet_use_timer; | 60 | extern int hpet_use_timer; |
61 | 61 | ||