diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-07-21 15:35:38 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-07-21 15:35:38 -0400 |
commit | cfc1b9a6a683c835a20d5b565ade55baf639f72f (patch) | |
tree | d9eb8b4a76185e6913ec542020f387a368132f9b /arch/x86/kernel/smpboot.c | |
parent | 2e2dcc7631e331cf2e8396ce452e7f01e35f1182 (diff) |
x86: convert Dprintk to pr_debug
There are a couple of places where (P)Dprintk is used which is an old
compile time enabled printk wrapper. Convert it to the generic
pr_debug().
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 27640196eb7c..4b53a647bc0a 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -216,7 +216,7 @@ static void __cpuinit smp_callin(void) | |||
216 | panic("%s: phys CPU#%d, CPU#%d already present??\n", __func__, | 216 | panic("%s: phys CPU#%d, CPU#%d already present??\n", __func__, |
217 | phys_id, cpuid); | 217 | phys_id, cpuid); |
218 | } | 218 | } |
219 | Dprintk("CPU#%d (phys ID: %d) waiting for CALLOUT\n", cpuid, phys_id); | 219 | pr_debug("CPU#%d (phys ID: %d) waiting for CALLOUT\n", cpuid, phys_id); |
220 | 220 | ||
221 | /* | 221 | /* |
222 | * STARTUP IPIs are fragile beasts as they might sometimes | 222 | * STARTUP IPIs are fragile beasts as they might sometimes |
@@ -251,7 +251,7 @@ static void __cpuinit smp_callin(void) | |||
251 | * boards) | 251 | * boards) |
252 | */ | 252 | */ |
253 | 253 | ||
254 | Dprintk("CALLIN, before setup_local_APIC().\n"); | 254 | pr_debug("CALLIN, before setup_local_APIC().\n"); |
255 | smp_callin_clear_local_apic(); | 255 | smp_callin_clear_local_apic(); |
256 | setup_local_APIC(); | 256 | setup_local_APIC(); |
257 | end_local_APIC_setup(); | 257 | end_local_APIC_setup(); |
@@ -266,7 +266,7 @@ static void __cpuinit smp_callin(void) | |||
266 | local_irq_enable(); | 266 | local_irq_enable(); |
267 | calibrate_delay(); | 267 | calibrate_delay(); |
268 | local_irq_disable(); | 268 | local_irq_disable(); |
269 | Dprintk("Stack at about %p\n", &cpuid); | 269 | pr_debug("Stack at about %p\n", &cpuid); |
270 | 270 | ||
271 | /* | 271 | /* |
272 | * Save our processor parameters | 272 | * Save our processor parameters |
@@ -513,7 +513,7 @@ static void impress_friends(void) | |||
513 | /* | 513 | /* |
514 | * Allow the user to impress friends. | 514 | * Allow the user to impress friends. |
515 | */ | 515 | */ |
516 | Dprintk("Before bogomips.\n"); | 516 | pr_debug("Before bogomips.\n"); |
517 | for_each_possible_cpu(cpu) | 517 | for_each_possible_cpu(cpu) |
518 | if (cpu_isset(cpu, cpu_callout_map)) | 518 | if (cpu_isset(cpu, cpu_callout_map)) |
519 | bogosum += cpu_data(cpu).loops_per_jiffy; | 519 | bogosum += cpu_data(cpu).loops_per_jiffy; |
@@ -523,7 +523,7 @@ static void impress_friends(void) | |||
523 | bogosum/(500000/HZ), | 523 | bogosum/(500000/HZ), |
524 | (bogosum/(5000/HZ))%100); | 524 | (bogosum/(5000/HZ))%100); |
525 | 525 | ||
526 | Dprintk("Before bogocount - setting activated=1.\n"); | 526 | pr_debug("Before bogocount - setting activated=1.\n"); |
527 | } | 527 | } |
528 | 528 | ||
529 | static inline void __inquire_remote_apic(int apicid) | 529 | static inline void __inquire_remote_apic(int apicid) |
@@ -585,7 +585,7 @@ wakeup_secondary_cpu(int logical_apicid, unsigned long start_eip) | |||
585 | /* Kick the second */ | 585 | /* Kick the second */ |
586 | apic_write(APIC_ICR, APIC_DM_NMI | APIC_DEST_LOGICAL); | 586 | apic_write(APIC_ICR, APIC_DM_NMI | APIC_DEST_LOGICAL); |
587 | 587 | ||
588 | Dprintk("Waiting for send to finish...\n"); | 588 | pr_debug("Waiting for send to finish...\n"); |
589 | send_status = safe_apic_wait_icr_idle(); | 589 | send_status = safe_apic_wait_icr_idle(); |
590 | 590 | ||
591 | /* | 591 | /* |
@@ -596,7 +596,7 @@ wakeup_secondary_cpu(int logical_apicid, unsigned long start_eip) | |||
596 | if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */ | 596 | if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */ |
597 | apic_write(APIC_ESR, 0); | 597 | apic_write(APIC_ESR, 0); |
598 | accept_status = (apic_read(APIC_ESR) & 0xEF); | 598 | accept_status = (apic_read(APIC_ESR) & 0xEF); |
599 | Dprintk("NMI sent.\n"); | 599 | pr_debug("NMI sent.\n"); |
600 | 600 | ||
601 | if (send_status) | 601 | if (send_status) |
602 | printk(KERN_ERR "APIC never delivered???\n"); | 602 | printk(KERN_ERR "APIC never delivered???\n"); |
@@ -631,7 +631,7 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
631 | apic_read(APIC_ESR); | 631 | apic_read(APIC_ESR); |
632 | } | 632 | } |
633 | 633 | ||
634 | Dprintk("Asserting INIT.\n"); | 634 | pr_debug("Asserting INIT.\n"); |
635 | 635 | ||
636 | /* | 636 | /* |
637 | * Turn INIT on target chip | 637 | * Turn INIT on target chip |
@@ -644,12 +644,12 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
644 | apic_write(APIC_ICR, | 644 | apic_write(APIC_ICR, |
645 | APIC_INT_LEVELTRIG | APIC_INT_ASSERT | APIC_DM_INIT); | 645 | APIC_INT_LEVELTRIG | APIC_INT_ASSERT | APIC_DM_INIT); |
646 | 646 | ||
647 | Dprintk("Waiting for send to finish...\n"); | 647 | pr_debug("Waiting for send to finish...\n"); |
648 | send_status = safe_apic_wait_icr_idle(); | 648 | send_status = safe_apic_wait_icr_idle(); |
649 | 649 | ||
650 | mdelay(10); | 650 | mdelay(10); |
651 | 651 | ||
652 | Dprintk("Deasserting INIT.\n"); | 652 | pr_debug("Deasserting INIT.\n"); |
653 | 653 | ||
654 | /* Target chip */ | 654 | /* Target chip */ |
655 | apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(phys_apicid)); | 655 | apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(phys_apicid)); |
@@ -657,7 +657,7 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
657 | /* Send IPI */ | 657 | /* Send IPI */ |
658 | apic_write(APIC_ICR, APIC_INT_LEVELTRIG | APIC_DM_INIT); | 658 | apic_write(APIC_ICR, APIC_INT_LEVELTRIG | APIC_DM_INIT); |
659 | 659 | ||
660 | Dprintk("Waiting for send to finish...\n"); | 660 | pr_debug("Waiting for send to finish...\n"); |
661 | send_status = safe_apic_wait_icr_idle(); | 661 | send_status = safe_apic_wait_icr_idle(); |
662 | 662 | ||
663 | mb(); | 663 | mb(); |
@@ -684,14 +684,14 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
684 | /* | 684 | /* |
685 | * Run STARTUP IPI loop. | 685 | * Run STARTUP IPI loop. |
686 | */ | 686 | */ |
687 | Dprintk("#startup loops: %d.\n", num_starts); | 687 | pr_debug("#startup loops: %d.\n", num_starts); |
688 | 688 | ||
689 | for (j = 1; j <= num_starts; j++) { | 689 | for (j = 1; j <= num_starts; j++) { |
690 | Dprintk("Sending STARTUP #%d.\n", j); | 690 | pr_debug("Sending STARTUP #%d.\n", j); |
691 | if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */ | 691 | if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */ |
692 | apic_write(APIC_ESR, 0); | 692 | apic_write(APIC_ESR, 0); |
693 | apic_read(APIC_ESR); | 693 | apic_read(APIC_ESR); |
694 | Dprintk("After apic_write.\n"); | 694 | pr_debug("After apic_write.\n"); |
695 | 695 | ||
696 | /* | 696 | /* |
697 | * STARTUP IPI | 697 | * STARTUP IPI |
@@ -709,9 +709,9 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
709 | */ | 709 | */ |
710 | udelay(300); | 710 | udelay(300); |
711 | 711 | ||
712 | Dprintk("Startup point 1.\n"); | 712 | pr_debug("Startup point 1.\n"); |
713 | 713 | ||
714 | Dprintk("Waiting for send to finish...\n"); | 714 | pr_debug("Waiting for send to finish...\n"); |
715 | send_status = safe_apic_wait_icr_idle(); | 715 | send_status = safe_apic_wait_icr_idle(); |
716 | 716 | ||
717 | /* | 717 | /* |
@@ -724,7 +724,7 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
724 | if (send_status || accept_status) | 724 | if (send_status || accept_status) |
725 | break; | 725 | break; |
726 | } | 726 | } |
727 | Dprintk("After Startup.\n"); | 727 | pr_debug("After Startup.\n"); |
728 | 728 | ||
729 | if (send_status) | 729 | if (send_status) |
730 | printk(KERN_ERR "APIC never delivered???\n"); | 730 | printk(KERN_ERR "APIC never delivered???\n"); |
@@ -875,7 +875,7 @@ do_rest: | |||
875 | 875 | ||
876 | if (get_uv_system_type() != UV_NON_UNIQUE_APIC) { | 876 | if (get_uv_system_type() != UV_NON_UNIQUE_APIC) { |
877 | 877 | ||
878 | Dprintk("Setting warm reset code and vector.\n"); | 878 | pr_debug("Setting warm reset code and vector.\n"); |
879 | 879 | ||
880 | store_NMI_vector(&nmi_high, &nmi_low); | 880 | store_NMI_vector(&nmi_high, &nmi_low); |
881 | 881 | ||
@@ -896,9 +896,9 @@ do_rest: | |||
896 | /* | 896 | /* |
897 | * allow APs to start initializing. | 897 | * allow APs to start initializing. |
898 | */ | 898 | */ |
899 | Dprintk("Before Callout %d.\n", cpu); | 899 | pr_debug("Before Callout %d.\n", cpu); |
900 | cpu_set(cpu, cpu_callout_map); | 900 | cpu_set(cpu, cpu_callout_map); |
901 | Dprintk("After Callout %d.\n", cpu); | 901 | pr_debug("After Callout %d.\n", cpu); |
902 | 902 | ||
903 | /* | 903 | /* |
904 | * Wait 5s total for a response | 904 | * Wait 5s total for a response |
@@ -911,10 +911,10 @@ do_rest: | |||
911 | 911 | ||
912 | if (cpu_isset(cpu, cpu_callin_map)) { | 912 | if (cpu_isset(cpu, cpu_callin_map)) { |
913 | /* number CPUs logically, starting from 1 (BSP is 0) */ | 913 | /* number CPUs logically, starting from 1 (BSP is 0) */ |
914 | Dprintk("OK.\n"); | 914 | pr_debug("OK.\n"); |
915 | printk(KERN_INFO "CPU%d: ", cpu); | 915 | printk(KERN_INFO "CPU%d: ", cpu); |
916 | print_cpu_info(&cpu_data(cpu)); | 916 | print_cpu_info(&cpu_data(cpu)); |
917 | Dprintk("CPU has booted.\n"); | 917 | pr_debug("CPU has booted.\n"); |
918 | } else { | 918 | } else { |
919 | boot_error = 1; | 919 | boot_error = 1; |
920 | if (*((volatile unsigned char *)trampoline_base) | 920 | if (*((volatile unsigned char *)trampoline_base) |
@@ -959,7 +959,7 @@ int __cpuinit native_cpu_up(unsigned int cpu) | |||
959 | 959 | ||
960 | WARN_ON(irqs_disabled()); | 960 | WARN_ON(irqs_disabled()); |
961 | 961 | ||
962 | Dprintk("++++++++++++++++++++=_---CPU UP %u\n", cpu); | 962 | pr_debug("++++++++++++++++++++=_---CPU UP %u\n", cpu); |
963 | 963 | ||
964 | if (apicid == BAD_APICID || apicid == boot_cpu_physical_apicid || | 964 | if (apicid == BAD_APICID || apicid == boot_cpu_physical_apicid || |
965 | !physid_isset(apicid, phys_cpu_present_map)) { | 965 | !physid_isset(apicid, phys_cpu_present_map)) { |
@@ -971,7 +971,7 @@ int __cpuinit native_cpu_up(unsigned int cpu) | |||
971 | * Already booted CPU? | 971 | * Already booted CPU? |
972 | */ | 972 | */ |
973 | if (cpu_isset(cpu, cpu_callin_map)) { | 973 | if (cpu_isset(cpu, cpu_callin_map)) { |
974 | Dprintk("do_boot_cpu %d Already started\n", cpu); | 974 | pr_debug("do_boot_cpu %d Already started\n", cpu); |
975 | return -ENOSYS; | 975 | return -ENOSYS; |
976 | } | 976 | } |
977 | 977 | ||
@@ -998,7 +998,7 @@ int __cpuinit native_cpu_up(unsigned int cpu) | |||
998 | err = do_boot_cpu(apicid, cpu); | 998 | err = do_boot_cpu(apicid, cpu); |
999 | #endif | 999 | #endif |
1000 | if (err) { | 1000 | if (err) { |
1001 | Dprintk("do_boot_cpu failed %d\n", err); | 1001 | pr_debug("do_boot_cpu failed %d\n", err); |
1002 | return -EIO; | 1002 | return -EIO; |
1003 | } | 1003 | } |
1004 | 1004 | ||
@@ -1202,7 +1202,7 @@ void __init native_smp_prepare_boot_cpu(void) | |||
1202 | 1202 | ||
1203 | void __init native_smp_cpus_done(unsigned int max_cpus) | 1203 | void __init native_smp_cpus_done(unsigned int max_cpus) |
1204 | { | 1204 | { |
1205 | Dprintk("Boot done.\n"); | 1205 | pr_debug("Boot done.\n"); |
1206 | 1206 | ||
1207 | impress_friends(); | 1207 | impress_friends(); |
1208 | smp_checks(); | 1208 | smp_checks(); |