From: Huang, Tao Date: Thu, 27 Oct 2016 11:41:45 +0000 (+0800) Subject: arm64: cpuinfo: add system serial support X-Git-Tag: firefly_0821_release~108 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=85be89ea619498724f8e92f39507b260ea561aed;p=firefly-linux-kernel-4.4.55.git arm64: cpuinfo: add system serial support Change-Id: I4542f07226e47e67be1f2792cffaa71fd6401442 Signed-off-by: Huang, Tao --- diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index cd5277012114..fa51b6ddacea 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -34,6 +34,12 @@ #include #include +unsigned int system_serial_low; +EXPORT_SYMBOL(system_serial_low); + +unsigned int system_serial_high; +EXPORT_SYMBOL(system_serial_high); + /* * In case the boot CPU is hotpluggable, we record its initial state and * current state separately. Certain system registers may contain different @@ -157,6 +163,9 @@ static int c_show(struct seq_file *m, void *v) seq_printf(m, "CPU revision\t: %d\n\n", MIDR_REVISION(midr)); } + seq_printf(m, "Serial\t\t: %08x%08x\n", + system_serial_high, system_serial_low); + return 0; }