diff options
| author | Neeraj Upadhyay <neeraju@codeaurora.org> | 2016-06-14 22:48:11 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-21 04:30:49 -0700 |
| commit | d4b83356bf43f9c15030d9e112b549b3053aa75b (patch) | |
| tree | 12a006459364febab8a234e992ba41ea776d5879 /arch | |
| parent | 9e2d528dc47d04e98c5e6f1c4ef84fc268115d36 (diff) | |
arm64: Add back print of processor name and rev
Add back print for the processor name and its rev id in c_show
function. This is required as some third party applications
need this field to be present. As cpu_name variable is removed
in a591ede4 ("arm64: Get rid of struct cpu_table"), directly
use "AArch64 Processor", to match original string, as cpu name.
Change-Id: I274ac72da8ec84c38ad04ff2b4009ac652b7b498
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm64/kernel/cpuinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 3691553f218e..c3c6557eb083 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -19,6 +19,7 @@ #include <asm/cpu.h> #include <asm/cputype.h> #include <asm/cpufeature.h> +#include <asm/elf.h> #include <linux/bitops.h> #include <linux/bug.h> @@ -107,6 +108,8 @@ static int c_show(struct seq_file *m, void *v) { int i, j; + seq_printf(m, "Processor\t: AArch64 Processor rev %d (%s)\n", + read_cpuid_id() & 15, ELF_PLATFORM); for_each_present_cpu(i) { struct cpuinfo_arm64 *cpuinfo = &per_cpu(cpu_data, i); u32 midr = cpuinfo->reg_midr; |
