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>
This commit is contained in:
parent
9e2d528dc4
commit
d4b83356bf
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue