diff options
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
| -rw-r--r-- | arch/x86/kernel/apic/apic.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index aa57c079c98f..dfca210f6a10 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
| @@ -61,12 +61,6 @@ unsigned int boot_cpu_physical_apicid = -1U; | |||
| 61 | 61 | ||
| 62 | /* | 62 | /* |
| 63 | * The highest APIC ID seen during enumeration. | 63 | * The highest APIC ID seen during enumeration. |
| 64 | * | ||
| 65 | * On AMD, this determines the messaging protocol we can use: if all APIC IDs | ||
| 66 | * are in the 0 ... 7 range, then we can use logical addressing which | ||
| 67 | * has some performance advantages (better broadcasting). | ||
| 68 | * | ||
| 69 | * If there's an APIC ID above 8, we use physical addressing. | ||
| 70 | */ | 64 | */ |
| 71 | unsigned int max_physical_apicid; | 65 | unsigned int max_physical_apicid; |
| 72 | 66 | ||
| @@ -1647,9 +1641,7 @@ int __init APIC_init_uniprocessor(void) | |||
| 1647 | #endif | 1641 | #endif |
| 1648 | 1642 | ||
| 1649 | enable_IR_x2apic(); | 1643 | enable_IR_x2apic(); |
| 1650 | #ifdef CONFIG_X86_64 | ||
| 1651 | default_setup_apic_routing(); | 1644 | default_setup_apic_routing(); |
| 1652 | #endif | ||
| 1653 | 1645 | ||
| 1654 | verify_local_APIC(); | 1646 | verify_local_APIC(); |
| 1655 | connect_bsp_APIC(); | 1647 | connect_bsp_APIC(); |
| @@ -1897,18 +1889,6 @@ void __cpuinit generic_processor_info(int apicid, int version) | |||
| 1897 | if (apicid > max_physical_apicid) | 1889 | if (apicid > max_physical_apicid) |
| 1898 | max_physical_apicid = apicid; | 1890 | max_physical_apicid = apicid; |
| 1899 | 1891 | ||
| 1900 | #ifdef CONFIG_X86_32 | ||
| 1901 | switch (boot_cpu_data.x86_vendor) { | ||
| 1902 | case X86_VENDOR_INTEL: | ||
| 1903 | if (num_processors > 8) | ||
| 1904 | def_to_bigsmp = 1; | ||
| 1905 | break; | ||
| 1906 | case X86_VENDOR_AMD: | ||
| 1907 | if (max_physical_apicid >= 8) | ||
| 1908 | def_to_bigsmp = 1; | ||
| 1909 | } | ||
| 1910 | #endif | ||
| 1911 | |||
| 1912 | #if defined(CONFIG_SMP) || defined(CONFIG_X86_64) | 1892 | #if defined(CONFIG_SMP) || defined(CONFIG_X86_64) |
| 1913 | early_per_cpu(x86_cpu_to_apicid, cpu) = apicid; | 1893 | early_per_cpu(x86_cpu_to_apicid, cpu) = apicid; |
| 1914 | early_per_cpu(x86_bios_cpu_apicid, cpu) = apicid; | 1894 | early_per_cpu(x86_bios_cpu_apicid, cpu) = apicid; |
