ARM: 8318/1: treat CPU feature register fields as signed quantities
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 19 Mar 2015 18:03:25 +0000 (19:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 28 Mar 2015 15:46:15 +0000 (15:46 +0000)
commitb8c9592b4a6c93211c8163888a97880d608503b5
tree7f8a3bda959aedbd356591fbaa4df6946a26cfd5
parenteb765c1ceb275b839ec67ff5779148b9298369c2
ARM: 8318/1: treat CPU feature register fields as signed quantities

The various CPU feature registers consist of 4-bit blocks that
represent signed quantities, whose positive values represent
incremental features, and whose negative values are reserved.

To improve forward compatibility, update the feature detection
code to take possible future higher values into account, but
ignore negative values.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cputype.h
arch/arm/kernel/setup.c