]> www.infradead.org Git - linux.git/commitdiff
x86/mpparse: Cleanup apic_printk()s
authorThomas Gleixner <tglx@linutronix.de>
Fri, 2 Aug 2024 16:15:44 +0000 (18:15 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 7 Aug 2024 16:13:28 +0000 (18:13 +0200)
Use the new apic_pr_verbose() helper.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Tested-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/all/20240802155440.779537108@linutronix.de
arch/x86/kernel/mpparse.c

index e89171b0347a6b16658b366ad289a7fcaf08e859..4a1b1b28abf95cf63c04e1750fab035d097d96cd 100644 (file)
@@ -68,7 +68,7 @@ static void __init mpc_oem_bus_info(struct mpc_bus *m, char *str)
 {
        memcpy(str, m->bustype, 6);
        str[6] = 0;
-       apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str);
+       apic_pr_verbose("Bus #%d is %s\n", m->busid, str);
 }
 
 static void __init MP_bus_info(struct mpc_bus *m)
@@ -417,7 +417,7 @@ static unsigned long __init get_mpc_size(unsigned long physptr)
        mpc = early_memremap(physptr, PAGE_SIZE);
        size = mpc->length;
        early_memunmap(mpc, PAGE_SIZE);
-       apic_printk(APIC_VERBOSE, "  mpc: %lx-%lx\n", physptr, physptr + size);
+       apic_pr_verbose("  mpc: %lx-%lx\n", physptr, physptr + size);
 
        return size;
 }
@@ -560,8 +560,7 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
        struct mpf_intel *mpf;
        int ret = 0;
 
-       apic_printk(APIC_VERBOSE, "Scan for SMP in [mem %#010lx-%#010lx]\n",
-                   base, base + length - 1);
+       apic_pr_verbose("Scan for SMP in [mem %#010lx-%#010lx]\n", base, base + length - 1);
        BUILD_BUG_ON(sizeof(*mpf) != 16);
 
        while (length > 0) {
@@ -683,13 +682,13 @@ static void __init check_irq_src(struct mpc_intsrc *m, int *nr_m_spare)
 {
        int i;
 
-       apic_printk(APIC_VERBOSE, "OLD ");
+       apic_pr_verbose("OLD ");
        print_mp_irq_info(m);
 
        i = get_MP_intsrc_index(m);
        if (i > 0) {
                memcpy(m, &mp_irqs[i], sizeof(*m));
-               apic_printk(APIC_VERBOSE, "NEW ");
+               apic_pr_verbose("NEW ");
                print_mp_irq_info(&mp_irqs[i]);
                return;
        }
@@ -772,7 +771,7 @@ static int  __init replace_intsrc_all(struct mpc_table *mpc,
                        continue;
 
                if (nr_m_spare > 0) {
-                       apic_printk(APIC_VERBOSE, "*NEW* found\n");
+                       apic_pr_verbose("*NEW* found\n");
                        nr_m_spare--;
                        memcpy(m_spare[nr_m_spare], &mp_irqs[i], sizeof(mp_irqs[i]));
                        m_spare[nr_m_spare] = NULL;