diff options
Diffstat (limited to 'arch/x86/kernel/apic/summit_32.c')
-rw-r--r-- | arch/x86/kernel/apic/summit_32.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/arch/x86/kernel/apic/summit_32.c b/arch/x86/kernel/apic/summit_32.c index 659897c00755..e97d542ccdd0 100644 --- a/arch/x86/kernel/apic/summit_32.c +++ b/arch/x86/kernel/apic/summit_32.c | |||
@@ -26,6 +26,8 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #define pr_fmt(fmt) "summit: %s: " fmt, __func__ | ||
30 | |||
29 | #include <linux/mm.h> | 31 | #include <linux/mm.h> |
30 | #include <linux/init.h> | 32 | #include <linux/init.h> |
31 | #include <asm/io.h> | 33 | #include <asm/io.h> |
@@ -235,8 +237,8 @@ static int summit_apic_id_registered(void) | |||
235 | 237 | ||
236 | static void summit_setup_apic_routing(void) | 238 | static void summit_setup_apic_routing(void) |
237 | { | 239 | { |
238 | printk("Enabling APIC mode: Summit. Using %d I/O APICs\n", | 240 | pr_info("Enabling APIC mode: Summit. Using %d I/O APICs\n", |
239 | nr_ioapics); | 241 | nr_ioapics); |
240 | } | 242 | } |
241 | 243 | ||
242 | static int summit_cpu_present_to_apicid(int mps_cpu) | 244 | static int summit_cpu_present_to_apicid(int mps_cpu) |
@@ -275,7 +277,7 @@ static unsigned int summit_cpu_mask_to_apicid(const struct cpumask *cpumask) | |||
275 | int new_apicid = early_per_cpu(x86_cpu_to_logical_apicid, cpu); | 277 | int new_apicid = early_per_cpu(x86_cpu_to_logical_apicid, cpu); |
276 | 278 | ||
277 | if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) { | 279 | if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) { |
278 | printk("%s: Not a valid mask!\n", __func__); | 280 | pr_err("Not a valid mask!\n"); |
279 | return BAD_APICID; | 281 | return BAD_APICID; |
280 | } | 282 | } |
281 | apicid |= new_apicid; | 283 | apicid |= new_apicid; |
@@ -355,7 +357,7 @@ static int setup_pci_node_map_for_wpeg(int wpeg_num, int last_bus) | |||
355 | } | 357 | } |
356 | } | 358 | } |
357 | if (i == rio_table_hdr->num_rio_dev) { | 359 | if (i == rio_table_hdr->num_rio_dev) { |
358 | printk(KERN_ERR "%s: Couldn't find owner Cyclone for Winnipeg!\n", __func__); | 360 | pr_err("Couldn't find owner Cyclone for Winnipeg!\n"); |
359 | return last_bus; | 361 | return last_bus; |
360 | } | 362 | } |
361 | 363 | ||
@@ -366,7 +368,7 @@ static int setup_pci_node_map_for_wpeg(int wpeg_num, int last_bus) | |||
366 | } | 368 | } |
367 | } | 369 | } |
368 | if (i == rio_table_hdr->num_scal_dev) { | 370 | if (i == rio_table_hdr->num_scal_dev) { |
369 | printk(KERN_ERR "%s: Couldn't find owner Twister for Cyclone!\n", __func__); | 371 | pr_err("Couldn't find owner Twister for Cyclone!\n"); |
370 | return last_bus; | 372 | return last_bus; |
371 | } | 373 | } |
372 | 374 | ||
@@ -396,7 +398,7 @@ static int setup_pci_node_map_for_wpeg(int wpeg_num, int last_bus) | |||
396 | num_buses = 9; | 398 | num_buses = 9; |
397 | break; | 399 | break; |
398 | default: | 400 | default: |
399 | printk(KERN_INFO "%s: Unsupported Winnipeg type!\n", __func__); | 401 | pr_info("Unsupported Winnipeg type!\n"); |
400 | return last_bus; | 402 | return last_bus; |
401 | } | 403 | } |
402 | 404 | ||
@@ -411,13 +413,15 @@ static int build_detail_arrays(void) | |||
411 | int i, scal_detail_size, rio_detail_size; | 413 | int i, scal_detail_size, rio_detail_size; |
412 | 414 | ||
413 | if (rio_table_hdr->num_scal_dev > MAX_NUMNODES) { | 415 | if (rio_table_hdr->num_scal_dev > MAX_NUMNODES) { |
414 | printk(KERN_WARNING "%s: MAX_NUMNODES too low! Defined as %d, but system has %d nodes.\n", __func__, MAX_NUMNODES, rio_table_hdr->num_scal_dev); | 416 | pr_warn("MAX_NUMNODES too low! Defined as %d, but system has %d nodes\n", |
417 | MAX_NUMNODES, rio_table_hdr->num_scal_dev); | ||
415 | return 0; | 418 | return 0; |
416 | } | 419 | } |
417 | 420 | ||
418 | switch (rio_table_hdr->version) { | 421 | switch (rio_table_hdr->version) { |
419 | default: | 422 | default: |
420 | printk(KERN_WARNING "%s: Invalid Rio Grande Table Version: %d\n", __func__, rio_table_hdr->version); | 423 | pr_warn("Invalid Rio Grande Table Version: %d\n", |
424 | rio_table_hdr->version); | ||
421 | return 0; | 425 | return 0; |
422 | case 2: | 426 | case 2: |
423 | scal_detail_size = 11; | 427 | scal_detail_size = 11; |
@@ -462,7 +466,7 @@ void setup_summit(void) | |||
462 | offset = *((unsigned short *)(ptr + offset)); | 466 | offset = *((unsigned short *)(ptr + offset)); |
463 | } | 467 | } |
464 | if (!rio_table_hdr) { | 468 | if (!rio_table_hdr) { |
465 | printk(KERN_ERR "%s: Unable to locate Rio Grande Table in EBDA - bailing!\n", __func__); | 469 | pr_err("Unable to locate Rio Grande Table in EBDA - bailing!\n"); |
466 | return; | 470 | return; |
467 | } | 471 | } |
468 | 472 | ||