Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fccb6e5 authored by Neeraj Upadhyay's avatar Neeraj Upadhyay Committed by Venkata Narendra Kumar Gutta
Browse files

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: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: default avatarVenkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
parent b1dc513c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
#include <asm/cputype.h>
#include <asm/cpufeature.h>
#include <asm/fpsimd.h>
#include <asm/elf.h>

#include <linux/bitops.h>
#include <linux/bug.h>
@@ -132,6 +133,8 @@ static int c_show(struct seq_file *m, void *v)
	int i, j;
	bool compat = personality(current->personality) == PER_LINUX32;

	seq_printf(m, "Processor\t: AArch64 Processor rev %d (%s)\n",
		read_cpuid_id() & 15, ELF_PLATFORM);
	for_each_online_cpu(i) {
		struct cpuinfo_arm64 *cpuinfo = &per_cpu(cpu_data, i);
		u32 midr = cpuinfo->reg_midr;