From 85be89ea619498724f8e92f39507b260ea561aed Mon Sep 17 00:00:00 2001 From: "Huang, Tao" Date: Thu, 27 Oct 2016 19:41:45 +0800 Subject: [PATCH] arm64: cpuinfo: add system serial support Change-Id: I4542f07226e47e67be1f2792cffaa71fd6401442 Signed-off-by: Huang, Tao --- arch/arm64/kernel/cpuinfo.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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; } -- 2.34.1