diff options
| -rw-r--r-- | arch/x86/kernel/apic/es7000_32.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/arch/x86/kernel/apic/es7000_32.c b/arch/x86/kernel/apic/es7000_32.c index 4d8830ffe487..19588f2770ee 100644 --- a/arch/x86/kernel/apic/es7000_32.c +++ b/arch/x86/kernel/apic/es7000_32.c | |||
| @@ -163,7 +163,7 @@ static int wakeup_secondary_cpu_via_mip(int cpu, unsigned long eip) | |||
| 163 | return 0; | 163 | return 0; |
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | static int __init es7000_apic_is_cluster(void) | 166 | static int es7000_apic_is_cluster(void) |
| 167 | { | 167 | { |
| 168 | /* MPENTIUMIII */ | 168 | /* MPENTIUMIII */ |
| 169 | if (boot_cpu_data.x86 == 6 && | 169 | if (boot_cpu_data.x86 == 6 && |
| @@ -173,7 +173,7 @@ static int __init es7000_apic_is_cluster(void) | |||
| 173 | return 0; | 173 | return 0; |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | static void __init setup_unisys(void) | 176 | static void setup_unisys(void) |
| 177 | { | 177 | { |
| 178 | /* | 178 | /* |
| 179 | * Determine the generation of the ES7000 currently running. | 179 | * Determine the generation of the ES7000 currently running. |
| @@ -192,7 +192,7 @@ static void __init setup_unisys(void) | |||
| 192 | /* | 192 | /* |
| 193 | * Parse the OEM Table: | 193 | * Parse the OEM Table: |
| 194 | */ | 194 | */ |
| 195 | static int __init parse_unisys_oem(char *oemptr) | 195 | static int parse_unisys_oem(char *oemptr) |
| 196 | { | 196 | { |
| 197 | int i; | 197 | int i; |
| 198 | int success = 0; | 198 | int success = 0; |
| @@ -254,7 +254,7 @@ static int __init parse_unisys_oem(char *oemptr) | |||
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | #ifdef CONFIG_ACPI | 256 | #ifdef CONFIG_ACPI |
| 257 | static int __init find_unisys_acpi_oem_table(unsigned long *oem_addr) | 257 | static int find_unisys_acpi_oem_table(unsigned long *oem_addr) |
| 258 | { | 258 | { |
| 259 | struct acpi_table_header *header = NULL; | 259 | struct acpi_table_header *header = NULL; |
| 260 | struct es7000_oem_table *table; | 260 | struct es7000_oem_table *table; |
| @@ -285,7 +285,7 @@ static int __init find_unisys_acpi_oem_table(unsigned long *oem_addr) | |||
| 285 | return 0; | 285 | return 0; |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | static void __init unmap_unisys_acpi_oem_table(unsigned long oem_addr) | 288 | static void unmap_unisys_acpi_oem_table(unsigned long oem_addr) |
| 289 | { | 289 | { |
| 290 | if (!oem_addr) | 290 | if (!oem_addr) |
| 291 | return; | 291 | return; |
| @@ -303,10 +303,10 @@ static int es7000_check_dsdt(void) | |||
| 303 | return 0; | 303 | return 0; |
| 304 | } | 304 | } |
| 305 | 305 | ||
| 306 | static int __initdata es7000_acpi_ret; | 306 | static int es7000_acpi_ret; |
| 307 | 307 | ||
| 308 | /* Hook from generic ACPI tables.c */ | 308 | /* Hook from generic ACPI tables.c */ |
| 309 | static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) | 309 | static int es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) |
| 310 | { | 310 | { |
| 311 | unsigned long oem_addr = 0; | 311 | unsigned long oem_addr = 0; |
| 312 | int check_dsdt; | 312 | int check_dsdt; |
| @@ -333,8 +333,7 @@ static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) | |||
| 333 | return ret && !es7000_apic_is_cluster(); | 333 | return ret && !es7000_apic_is_cluster(); |
| 334 | } | 334 | } |
| 335 | 335 | ||
| 336 | static int __init | 336 | static int es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id) |
| 337 | es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id) | ||
| 338 | { | 337 | { |
| 339 | int ret = es7000_acpi_ret; | 338 | int ret = es7000_acpi_ret; |
| 340 | 339 | ||
| @@ -342,13 +341,12 @@ es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id) | |||
| 342 | } | 341 | } |
| 343 | 342 | ||
| 344 | #else /* !CONFIG_ACPI: */ | 343 | #else /* !CONFIG_ACPI: */ |
| 345 | static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) | 344 | static int es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) |
| 346 | { | 345 | { |
| 347 | return 0; | 346 | return 0; |
| 348 | } | 347 | } |
| 349 | 348 | ||
| 350 | static int __init | 349 | static int es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id) |
| 351 | es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id) | ||
| 352 | { | 350 | { |
| 353 | return 0; | 351 | return 0; |
| 354 | } | 352 | } |
| @@ -362,8 +360,7 @@ static void es7000_spin(int n) | |||
| 362 | rep_nop(); | 360 | rep_nop(); |
| 363 | } | 361 | } |
| 364 | 362 | ||
| 365 | static int __init | 363 | static int es7000_mip_write(struct mip_reg *mip_reg) |
| 366 | es7000_mip_write(struct mip_reg *mip_reg) | ||
| 367 | { | 364 | { |
| 368 | int status = 0; | 365 | int status = 0; |
| 369 | int spin; | 366 | int spin; |
| @@ -396,7 +393,7 @@ es7000_mip_write(struct mip_reg *mip_reg) | |||
| 396 | return status; | 393 | return status; |
| 397 | } | 394 | } |
| 398 | 395 | ||
| 399 | static void __init es7000_enable_apic_mode(void) | 396 | static void es7000_enable_apic_mode(void) |
| 400 | { | 397 | { |
| 401 | struct mip_reg es7000_mip_reg; | 398 | struct mip_reg es7000_mip_reg; |
| 402 | int mip_status; | 399 | int mip_status; |
| @@ -627,9 +624,9 @@ static int probe_es7000(void) | |||
| 627 | return 0; | 624 | return 0; |
| 628 | } | 625 | } |
| 629 | 626 | ||
| 630 | static int __initdata es7000_mps_ret; | 627 | static int es7000_mps_ret; |
| 631 | static __init int | 628 | static int es7000_mps_oem_check(struct mpc_table *mpc, char *oem, |
| 632 | es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) | 629 | char *productid) |
| 633 | { | 630 | { |
| 634 | int ret = 0; | 631 | int ret = 0; |
| 635 | 632 | ||
| @@ -646,8 +643,8 @@ es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) | |||
| 646 | return ret && !es7000_apic_is_cluster(); | 643 | return ret && !es7000_apic_is_cluster(); |
| 647 | } | 644 | } |
| 648 | 645 | ||
| 649 | static __init int | 646 | static int es7000_mps_oem_check_cluster(struct mpc_table *mpc, char *oem, |
| 650 | es7000_mps_oem_check_cluster(struct mpc_table *mpc, char *oem, char *productid) | 647 | char *productid) |
| 651 | { | 648 | { |
| 652 | int ret = es7000_mps_ret; | 649 | int ret = es7000_mps_ret; |
| 653 | 650 | ||
