CPU architecture is assigned to be a fixed value, it should be obtained
from midr register.
Signed-off-by: Liguang Zhang <redacted>
---
arch/arm64/kernel/cpuinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Will Deacon <will@kernel.org> Date: 2021-01-19 11:18:18
On Tue, Jan 19, 2021 at 06:55:10PM +0800, Liguang Zhang wrote:
quoted hunk
CPU architecture is assigned to be a fixed value, it should be obtained
from midr register.
Signed-off-by: Liguang Zhang <redacted>
---
arch/arm64/kernel/cpuinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Tue, Jan 19, 2021 at 06:55:10PM +0800, Liguang Zhang wrote:
quoted
CPU architecture is assigned to be a fixed value, it should be obtained
from midr register.
Signed-off-by: Liguang Zhang <redacted>
---
arch/arm64/kernel/cpuinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Tue, Jan 19, 2021 at 07:26:31PM +0800, 乱石 wrote:
锟斤拷 2021/1/19 19:01, Will Deacon 写锟斤拷:
quoted
On Tue, Jan 19, 2021 at 06:55:10PM +0800, Liguang Zhang wrote:
quoted
CPU architecture is assigned to be a fixed value, it should be obtained
from midr register.
Signed-off-by: Liguang Zhang <redacted>
---
arch/arm64/kernel/cpuinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hi Will,
I'm not sure. My platform return 0xf, but /proc/cpuinfo show 8. Why we
assign a fixed
value to cpu architecture?
Because 0xf first appeared on some ARMv6 CPUs (1176, 11MPcore and some
newer revisions of 1136). A field value of 0xf means don't bother with
architecture version but rather check the CPUID information for the
features you need. We decided to call it 8 here with 64-bit as that was
announced as ARMv8. A 32-bit kernel running on ARMv8 hardware would
report 7 (as it would on some ARMv6 hardware like 1176 etc.)
--
Catalin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel