]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8564/1: fix cpu feature extracting helper
authorVladimir Murzin <vladimir.murzin@arm.com>
Tue, 19 Apr 2016 11:35:55 +0000 (12:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 19 Apr 2016 18:42:26 +0000 (19:42 +0100)
commitf1d9e5f68b8e4f2b1b41b2b3cc72ac0ba66c290e
tree82589bea053c019bd8f5745fbfe8a677555a8beb
parentb0e19b8d471cb5d01ed354dea05e7b863f69d10a
ARM: 8564/1: fix cpu feature extracting helper

Commit dc2c5b1 "ARM: 8318/1: treat CPU feature register fields as signed
quantities" introduced helper to extract signed quantities of 4-bit
blocks. However, with a current code feature with value 0b1000 isn't
rejected as negative. So fix the "if" condition.

Reported-by: Jonathan Brawn <Jon.Brawn@arm.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cputype.h