Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1403405
| From | x00195127 <saberlily.xia@hisilicon.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility |
| Date | 2016-05-19 04:50 +0200 |
| Message-ID | <rAmc9-2ff-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility x00195127 <saberlily.xia@hisilicon.com> - 2016-05-19 04:50 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility Martinez Kristofer <kristofer.s.martinez@gmail.com> - 2016-05-19 12:20 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility Catalin Marinas <catalin.marinas@arm.com> - 2016-05-19 12:50 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility "Xiaqing (A)" <saberlily.xia@hisilicon.com> - 2016-05-19 13:20 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility Catalin Marinas <catalin.marinas@arm.com> - 2016-05-19 15:00 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility Catalin Marinas <catalin.marinas@arm.com> - 2016-05-19 15:20 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility "Xiaqing (A)" <saberlily.xia@hisilicon.com> - 2016-05-20 05:30 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility Catalin Marinas <catalin.marinas@arm.com> - 2016-05-20 12:00 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility Robin Murphy <robin.murphy@arm.com> - 2016-05-19 13:10 +0200
Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility "Xiaqing (A)" <saberlily.xia@hisilicon.com> - 2016-05-19 13:50 +0200
csiph-web