projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm64: cpuinfo: add system serial support
[firefly-linux-kernel-4.4.55.git]
/
arch
/
arm64
/
kernel
/
cpuinfo.c
diff --git
a/arch/arm64/kernel/cpuinfo.c
b/arch/arm64/kernel/cpuinfo.c
index cd5277012114c601239133e47dfe50ebcb36dd3c..fa51b6ddaceafa88b1e9c7edc2ef54de22217d4e 100644
(file)
--- a/
arch/arm64/kernel/cpuinfo.c
+++ b/
arch/arm64/kernel/cpuinfo.c
@@
-34,6
+34,12
@@
#include <linux/smp.h>
#include <linux/delay.h>
#include <linux/smp.h>
#include <linux/delay.h>
+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
/*
* 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, "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;
}
return 0;
}