arm64: kernel: Add min_field_value and use '>=' for feature detection
authorJames Morse <james.morse@arm.com>
Tue, 21 Jul 2015 12:23:29 +0000 (13:23 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 10:08:41 +0000 (11:08 +0100)
commit18ffa046c509d0cd011eeea2c0418f2d014771fc
treef227a03aa45ce8a70c61b54e9bbf691ee5736855
parent1c0763037f1e1caef739e36e09c6d41ed7b61b2d
arm64: kernel: Add min_field_value and use '>=' for feature detection

When a new cpu feature is available, the cpu feature bits will have some
initial value, which is incremented when the feature is updated.
This patch changes 'register_value' to be 'min_field_value', and checks
the feature bits value (interpreted as a signed int) is greater than this
minimum.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpufeature.c