aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/smp.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2008-12-25 07:39:50 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-12-25 07:39:25 -0500
commit395d31d40cc38270dd7c024691404e2eddf0678d (patch)
tree6e1a0f4114985f612090bedb00b8a4c860b815e4 /arch/s390/kernel/smp.c
parent74eacdb9c2bf9fc6e8c6785013b5dd0e551a9dfa (diff)
[S390] convert cpu related printks to pr_xxx macros.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r--arch/s390/kernel/smp.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 1e7db1ab7453..6fc78541dc57 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -20,6 +20,9 @@
20 * cpu_number_map in other architectures. 20 * cpu_number_map in other architectures.
21 */ 21 */
22 22
23#define KMSG_COMPONENT "cpu"
24#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
25
23#include <linux/module.h> 26#include <linux/module.h>
24#include <linux/init.h> 27#include <linux/init.h>
25#include <linux/mm.h> 28#include <linux/mm.h>
@@ -251,8 +254,8 @@ static void __init smp_get_save_area(unsigned int cpu, unsigned int phy_cpu)
251 if (ipl_info.type != IPL_TYPE_FCP_DUMP) 254 if (ipl_info.type != IPL_TYPE_FCP_DUMP)
252 return; 255 return;
253 if (cpu >= NR_CPUS) { 256 if (cpu >= NR_CPUS) {
254 printk(KERN_WARNING "Registers for cpu %i not saved since dump " 257 pr_warning("CPU %i exceeds the maximum %i and is excluded from "
255 "kernel was compiled with NR_CPUS=%i\n", cpu, NR_CPUS); 258 "the dump\n", cpu, NR_CPUS - 1);
256 return; 259 return;
257 } 260 }
258 zfcpdump_save_areas[cpu] = kmalloc(sizeof(union save_area), GFP_KERNEL); 261 zfcpdump_save_areas[cpu] = kmalloc(sizeof(union save_area), GFP_KERNEL);
@@ -425,7 +428,7 @@ static void __init smp_detect_cpus(void)
425 } 428 }
426out: 429out:
427 kfree(info); 430 kfree(info);
428 printk(KERN_INFO "CPUs: %d configured, %d standby\n", c_cpus, s_cpus); 431 pr_info("%d configured CPUs, %d standby CPUs\n", c_cpus, s_cpus);
429 get_online_cpus(); 432 get_online_cpus();
430 __smp_rescan_cpus(); 433 __smp_rescan_cpus();
431 put_online_cpus(); 434 put_online_cpus();
@@ -548,12 +551,8 @@ int __cpuinit __cpu_up(unsigned int cpu)
548 551
549 ccode = signal_processor_p((__u32)(unsigned long)(lowcore_ptr[cpu]), 552 ccode = signal_processor_p((__u32)(unsigned long)(lowcore_ptr[cpu]),
550 cpu, sigp_set_prefix); 553 cpu, sigp_set_prefix);
551 if (ccode) { 554 if (ccode)
552 printk("sigp_set_prefix failed for cpu %d "
553 "with condition code %d\n",
554 (int) cpu, (int) ccode);
555 return -EIO; 555 return -EIO;
556 }
557 556
558 idle = current_set[cpu]; 557 idle = current_set[cpu];
559 cpu_lowcore = lowcore_ptr[cpu]; 558 cpu_lowcore = lowcore_ptr[cpu];
@@ -636,7 +635,7 @@ void __cpu_die(unsigned int cpu)
636 while (!smp_cpu_not_running(cpu)) 635 while (!smp_cpu_not_running(cpu))
637 cpu_relax(); 636 cpu_relax();
638 smp_free_lowcore(cpu); 637 smp_free_lowcore(cpu);
639 printk(KERN_INFO "Processor %d spun down\n", cpu); 638 pr_info("Processor %d stopped\n", cpu);
640} 639}
641 640
642void cpu_die(void) 641void cpu_die(void)