From: zhangwm@marvell.com (Neil Zhang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM64: kernel: add compatible cpuinfo
Date: Wed, 14 May 2014 11:08:14 +0800 [thread overview]
Message-ID: <1400036894-16667-1-git-send-email-zhangwm@marvell.com> (raw)
Print the necessary features in order to be backwards compatible with
ARMv7 and earlier version.
Signed-off-by: Neil Zhang <zhangwm@marvell.com>
---
arch/arm64/kernel/setup.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 7ec7846..a09ecfe 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -451,6 +451,11 @@ static int c_show(struct seq_file *m, void *v)
if (elf_hwcap & (1 << i))
seq_printf(m, "%s ", hwcap_str[i]);
+#ifdef CONFIG_COMPAT
+ seq_puts(m, "half thumb fastmult edsp tls vfp vfpv3 vfpv4 neon ");
+ seq_puts(m, "idiva idivt ");
+#endif
+
seq_printf(m, "\nCPU implementer\t: 0x%02x\n", read_cpuid_id() >> 24);
seq_printf(m, "CPU architecture: AArch64\n");
seq_printf(m, "CPU variant\t: 0x%x\n", (read_cpuid_id() >> 20) & 15);
--
1.7.9.5
next reply other threads:[~2014-05-14 3:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 3:08 Neil Zhang [this message]
2014-05-14 9:03 ` [PATCH v2] ARM64: kernel: add compatible cpuinfo Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400036894-16667-1-git-send-email-zhangwm@marvell.com \
--to=zhangwm@marvell.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).