linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM64: kernel: add compatable cpuinfo
@ 2014-05-14  2:59 Neil Zhang
  2014-05-14  3:09 ` Neil Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Neil Zhang @ 2014-05-14  2:59 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 compatable 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 related	[flat|nested] 2+ messages in thread

* RE: [PATCH] ARM64: kernel: add compatable cpuinfo
  2014-05-14  2:59 [PATCH] ARM64: kernel: add compatable cpuinfo Neil Zhang
@ 2014-05-14  3:09 ` Neil Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Zhang @ 2014-05-14  3:09 UTC (permalink / raw)
  To: Neil Zhang, linux-arm-kernel, linux-kernel; +Cc: catalin.marinas, will.deacon

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 1426 bytes --]


> -----Original Message-----
> From: Neil Zhang [mailto:zhangwm@marvell.com]
> Sent: 2014Äê5ÔÂ14ÈÕ 11:00
> To: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org
> Cc: catalin.marinas@arm.com; will.deacon@arm.com; Neil Zhang
> Subject: [PATCH] ARM64: kernel: add compatable cpuinfo
> 

Fix typo in version 2.

> Print the necessary features in order to be backwards compatable 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

Best Regards,
Neil Zhang
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

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

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

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).