From 3936ea811f0a5b828457a4d642db90dc5e0bc150 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Thu, 27 Oct 2016 19:41:45 +0800 Subject: [PATCH] arm64: cpuinfo: add system serial support Change-Id: I4542f07226e47e67be1f2792cffaa71fd6401442 Signed-off-by: Tao Huang --- 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 8690917651a3..4fb9a290a5ef 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -35,6 +35,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 @@ -177,6 +183,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; }