Loading arch/x86/kernel/cpu/bugs.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -154,7 +154,7 @@ static void __init check_config(void) * If we configured ourselves for a TSC, we'd better have one! * If we configured ourselves for a TSC, we'd better have one! */ */ #ifdef CONFIG_X86_TSC #ifdef CONFIG_X86_TSC if (!cpu_has_tsc && !tsc_disable) if (!cpu_has_tsc) panic("Kernel compiled for Pentium+, requires TSC feature!"); panic("Kernel compiled for Pentium+, requires TSC feature!"); #endif #endif Loading arch/x86/kernel/cpu/common.c +0 −9 Original line number Original line Diff line number Diff line Loading @@ -446,10 +446,6 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) * we do "generic changes." * we do "generic changes." */ */ /* TSC disabled? */ if ( tsc_disable ) clear_bit(X86_FEATURE_TSC, c->x86_capability); /* If the model name is still unset, do table lookup. */ /* If the model name is still unset, do table lookup. */ if ( !c->x86_model_id[0] ) { if ( !c->x86_model_id[0] ) { char *p; char *p; Loading Loading @@ -650,11 +646,6 @@ void __cpuinit cpu_init(void) if (cpu_has_vme || cpu_has_tsc || cpu_has_de) if (cpu_has_vme || cpu_has_tsc || cpu_has_de) clear_in_cr4(X86_CR4_VME|X86_CR4_PVI|X86_CR4_TSD|X86_CR4_DE); clear_in_cr4(X86_CR4_VME|X86_CR4_PVI|X86_CR4_TSD|X86_CR4_DE); if (tsc_disable && cpu_has_tsc) { printk(KERN_NOTICE "Disabling TSC...\n"); /**** FIX-HPA: DOES THIS REALLY BELONG HERE? ****/ clear_bit(X86_FEATURE_TSC, boot_cpu_data.x86_capability); } load_idt(&idt_descr); load_idt(&idt_descr); switch_to_new_gdt(); switch_to_new_gdt(); Loading arch/x86/kernel/numaq_32.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -82,7 +82,7 @@ static int __init numaq_tsc_disable(void) { { if (num_online_nodes() > 1) { if (num_online_nodes() > 1) { printk(KERN_DEBUG "NUMAQ: disabling TSC\n"); printk(KERN_DEBUG "NUMAQ: disabling TSC\n"); tsc_disable = 1; setup_clear_cpu_cap(X86_FEATURE_TSC); } } return 0; return 0; } } Loading arch/x86/kernel/tsc_32.c +3 −11 Original line number Original line Diff line number Diff line Loading @@ -24,8 +24,6 @@ static int tsc_enabled; unsigned int tsc_khz; unsigned int tsc_khz; EXPORT_SYMBOL_GPL(tsc_khz); EXPORT_SYMBOL_GPL(tsc_khz); int tsc_disable; #ifdef CONFIG_X86_TSC #ifdef CONFIG_X86_TSC static int __init tsc_setup(char *str) static int __init tsc_setup(char *str) { { Loading @@ -40,8 +38,7 @@ static int __init tsc_setup(char *str) */ */ static int __init tsc_setup(char *str) static int __init tsc_setup(char *str) { { tsc_disable = 1; setup_clear_cpu_cap(X86_FEATURE_TSC); return 1; return 1; } } #endif #endif Loading Loading @@ -395,7 +392,7 @@ void __init tsc_init(void) { { int cpu; int cpu; if (!cpu_has_tsc || tsc_disable) if (!cpu_has_tsc) goto out_no_tsc; goto out_no_tsc; cpu_khz = calculate_cpu_khz(); cpu_khz = calculate_cpu_khz(); Loading Loading @@ -439,10 +436,5 @@ void __init tsc_init(void) return; return; out_no_tsc: out_no_tsc: /* setup_clear_cpu_cap(X86_FEATURE_TSC); * Set the tsc_disable flag if there's no TSC support, this * makes it a fast flag for the kernel to see whether it * should be using the TSC. */ tsc_disable = 1; } } arch/x86/mach-voyager/setup.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -37,7 +37,7 @@ void __init pre_setup_arch_hook(void) { { /* Voyagers run their CPUs from independent clocks, so disable /* Voyagers run their CPUs from independent clocks, so disable * the TSC code because we can't sync them */ * the TSC code because we can't sync them */ tsc_disable = 1; setup_clear_cpu_cap(X86_FEATURE_TSC); } } void __init trap_init_hook(void) void __init trap_init_hook(void) Loading Loading
arch/x86/kernel/cpu/bugs.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -154,7 +154,7 @@ static void __init check_config(void) * If we configured ourselves for a TSC, we'd better have one! * If we configured ourselves for a TSC, we'd better have one! */ */ #ifdef CONFIG_X86_TSC #ifdef CONFIG_X86_TSC if (!cpu_has_tsc && !tsc_disable) if (!cpu_has_tsc) panic("Kernel compiled for Pentium+, requires TSC feature!"); panic("Kernel compiled for Pentium+, requires TSC feature!"); #endif #endif Loading
arch/x86/kernel/cpu/common.c +0 −9 Original line number Original line Diff line number Diff line Loading @@ -446,10 +446,6 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) * we do "generic changes." * we do "generic changes." */ */ /* TSC disabled? */ if ( tsc_disable ) clear_bit(X86_FEATURE_TSC, c->x86_capability); /* If the model name is still unset, do table lookup. */ /* If the model name is still unset, do table lookup. */ if ( !c->x86_model_id[0] ) { if ( !c->x86_model_id[0] ) { char *p; char *p; Loading Loading @@ -650,11 +646,6 @@ void __cpuinit cpu_init(void) if (cpu_has_vme || cpu_has_tsc || cpu_has_de) if (cpu_has_vme || cpu_has_tsc || cpu_has_de) clear_in_cr4(X86_CR4_VME|X86_CR4_PVI|X86_CR4_TSD|X86_CR4_DE); clear_in_cr4(X86_CR4_VME|X86_CR4_PVI|X86_CR4_TSD|X86_CR4_DE); if (tsc_disable && cpu_has_tsc) { printk(KERN_NOTICE "Disabling TSC...\n"); /**** FIX-HPA: DOES THIS REALLY BELONG HERE? ****/ clear_bit(X86_FEATURE_TSC, boot_cpu_data.x86_capability); } load_idt(&idt_descr); load_idt(&idt_descr); switch_to_new_gdt(); switch_to_new_gdt(); Loading
arch/x86/kernel/numaq_32.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -82,7 +82,7 @@ static int __init numaq_tsc_disable(void) { { if (num_online_nodes() > 1) { if (num_online_nodes() > 1) { printk(KERN_DEBUG "NUMAQ: disabling TSC\n"); printk(KERN_DEBUG "NUMAQ: disabling TSC\n"); tsc_disable = 1; setup_clear_cpu_cap(X86_FEATURE_TSC); } } return 0; return 0; } } Loading
arch/x86/kernel/tsc_32.c +3 −11 Original line number Original line Diff line number Diff line Loading @@ -24,8 +24,6 @@ static int tsc_enabled; unsigned int tsc_khz; unsigned int tsc_khz; EXPORT_SYMBOL_GPL(tsc_khz); EXPORT_SYMBOL_GPL(tsc_khz); int tsc_disable; #ifdef CONFIG_X86_TSC #ifdef CONFIG_X86_TSC static int __init tsc_setup(char *str) static int __init tsc_setup(char *str) { { Loading @@ -40,8 +38,7 @@ static int __init tsc_setup(char *str) */ */ static int __init tsc_setup(char *str) static int __init tsc_setup(char *str) { { tsc_disable = 1; setup_clear_cpu_cap(X86_FEATURE_TSC); return 1; return 1; } } #endif #endif Loading Loading @@ -395,7 +392,7 @@ void __init tsc_init(void) { { int cpu; int cpu; if (!cpu_has_tsc || tsc_disable) if (!cpu_has_tsc) goto out_no_tsc; goto out_no_tsc; cpu_khz = calculate_cpu_khz(); cpu_khz = calculate_cpu_khz(); Loading Loading @@ -439,10 +436,5 @@ void __init tsc_init(void) return; return; out_no_tsc: out_no_tsc: /* setup_clear_cpu_cap(X86_FEATURE_TSC); * Set the tsc_disable flag if there's no TSC support, this * makes it a fast flag for the kernel to see whether it * should be using the TSC. */ tsc_disable = 1; } }
arch/x86/mach-voyager/setup.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -37,7 +37,7 @@ void __init pre_setup_arch_hook(void) { { /* Voyagers run their CPUs from independent clocks, so disable /* Voyagers run their CPUs from independent clocks, so disable * the TSC code because we can't sync them */ * the TSC code because we can't sync them */ tsc_disable = 1; setup_clear_cpu_cap(X86_FEATURE_TSC); } } void __init trap_init_hook(void) void __init trap_init_hook(void) Loading