ARC: set boot print log level to PR_INFO
authorNoam Camus <noamca@mellanox.com>
Thu, 15 Jun 2017 08:43:51 +0000 (11:43 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 28 Aug 2017 22:17:36 +0000 (15:17 -0700)
Some of the boot printing code had printk() w/o explicit log level.

This patch introduces consistency allowing platforms to switch to less
verbose console logging using cmdline.

NPS400 with 4K CPUs needs to avoid the cpu info printing for faster
bootup.

Signed-off-by: Noam Camus <noamca@mellanox.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/setup.c
arch/arc/mm/cache.c
arch/arc/mm/tlb.c

index 666613fde91d09cb48f76370dc5b9ff0bd91feae..c4ffb441716c405d61cc16fd74e6fe071076940f 100644 (file)
@@ -385,13 +385,13 @@ void setup_processor(void)
        read_arc_build_cfg_regs();
        arc_init_IRQ();
 
-       printk(arc_cpu_mumbojumbo(cpu_id, str, sizeof(str)));
+       pr_info("%s", arc_cpu_mumbojumbo(cpu_id, str, sizeof(str)));
 
        arc_mmu_init();
        arc_cache_init();
 
-       printk(arc_extn_mumbojumbo(cpu_id, str, sizeof(str)));
-       printk(arc_platform_smp_cpuinfo());
+       pr_info("%s", arc_extn_mumbojumbo(cpu_id, str, sizeof(str)));
+       pr_info("%s", arc_platform_smp_cpuinfo());
 
        arc_chk_core_config();
 }
index 7db283b46ebde8daccf779525e82526e47ad2722..7754efb69d9b9ef019aa4e0a7e0ca49d6cf5c8c4 100644 (file)
@@ -1207,7 +1207,7 @@ void __ref arc_cache_init(void)
        unsigned int __maybe_unused cpu = smp_processor_id();
        char str[256];
 
-       printk(arc_cache_mumbojumbo(0, str, sizeof(str)));
+       pr_info("%s", arc_cache_mumbojumbo(0, str, sizeof(str)));
 
        if (!cpu)
                arc_cache_init_master();
index b181f3ee38aab54565d8de8c1e5136375c6358cc..edc59a0a9c9b43ff839928d6873d15fe5846604d 100644 (file)
@@ -821,7 +821,7 @@ void arc_mmu_init(void)
        char str[256];
        struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu;
 
-       printk(arc_mmu_mumbojumbo(0, str, sizeof(str)));
+       pr_info("%s", arc_mmu_mumbojumbo(0, str, sizeof(str)));
 
        /*
         * Can't be done in processor.h due to header include depenedencies