linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility
@ 2016-05-19  2:44 x00195127
  2016-05-19 10:14 ` Martinez Kristofer
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: x00195127 @ 2016-05-19  2:44 UTC (permalink / raw)
  To: linux-arm-kernel

we find that some apps will read cpuinfo when start up,
they need the string  as follows:
"Processor       : AArch64 Processor rev 0 (aarch64)"

Then thay could load the corresponding libs. But now
arm64 platform's cpuinfo don't has this now, so
we need add this.

Signed-off-by: Qing Xia <saberlily.xia@hisilicon.com>
---
 arch/arm64/kernel/cpuinfo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
index 3808470..c3527ad 100644
--- a/arch/arm64/kernel/cpuinfo.c
+++ b/arch/arm64/kernel/cpuinfo.c
@@ -114,6 +114,9 @@ static int c_show(struct seq_file *m, void *v)
 		 * online processors, looking for lines beginning with
 		 * "processor".  Give glibc what it expects.
 		 */
+		seq_printf(m, "Processor\t: AArch64 Processor rev %d (%s)\n",
+				read_cpuid_id() & 15, ELF_PLATFORM);
+
 		seq_printf(m, "processor\t: %d\n", i);
 
 		seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-20  9:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-19  2:44 [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility x00195127
2016-05-19 10:14 ` Martinez Kristofer
2016-05-19 10:49 ` Catalin Marinas
2016-05-19 11:06   ` Xiaqing (A)
2016-05-19 12:50     ` Catalin Marinas
2016-05-19 13:18       ` Catalin Marinas
2016-05-20  3:22         ` Xiaqing (A)
2016-05-20  9:55           ` Catalin Marinas
2016-05-19 11:04 ` Robin Murphy
2016-05-19 11:42   ` Xiaqing (A)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).