ARM: SAMSUNG: print CPU id on probe
authorOlof Johansson <olof@lixom.net>
Wed, 26 Nov 2014 06:43:35 +0000 (15:43 +0900)
committerKukjin Kim <kgene@kernel.org>
Mon, 22 Dec 2014 15:19:52 +0000 (00:19 +0900)
It's useful to get the CPU ID/rev printed during boot sometimes, so
add a line with that information. Given that the fields have moved
within the register over time, don't try to be clever and parse it --
just print the raw values for now.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/plat-samsung/cpu.c

index 360618ee39e50df432f85acaeb8091ad6c3f1e0c..71333bb61013c6f68e5168753fc98dea4def717a 100644 (file)
@@ -40,10 +40,14 @@ void __init s3c64xx_init_cpu(void)
        }
 
        samsung_cpu_rev = 0;
+
+       pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id);
 }
 
 void __init s5p_init_cpu(void __iomem *cpuid_addr)
 {
        samsung_cpu_id = __raw_readl(cpuid_addr);
        samsung_cpu_rev = samsung_cpu_id & 0xFF;
+
+       pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id);
 }
This page took 0.025249 seconds and 5 git commands to generate.