mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] ARM64: kernel: add compatible cpuinfo
@ 2014-05-14  3:08 Neil Zhang
  2014-05-14  9:03 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Neil Zhang @ 2014-05-14  3:08 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel; +Cc: catalin.marinas, will.deacon, Neil Zhang

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


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

* Re: [PATCH v2] ARM64: kernel: add compatible cpuinfo
  2014-05-14  3:08 [PATCH v2] ARM64: kernel: add compatible cpuinfo Neil Zhang
@ 2014-05-14  9:03 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2014-05-14  9:03 UTC (permalink / raw)
  To: Neil Zhang; +Cc: linux-arm-kernel, linux-kernel, Catalin Marinas

On Wed, May 14, 2014 at 04:08:14AM +0100, Neil Zhang wrote:
> Print the necessary features in order to be backwards compatible with
> ARMv7 and earlier version.

NAK. The compat hwcaps are already advertised in auxv, and I don't have any
plans to align our /proc/cpuinfo format.

Will

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

end of thread, other threads:[~2014-05-14  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14  3:08 [PATCH v2] ARM64: kernel: add compatible cpuinfo Neil Zhang
2014-05-14  9:03 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome