]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bb4fa25a0d30d57061d13bc0920230e933ec559
treef227a03aa45ce8a70c61b54e9bbf691ee5736855
parent4e37a786add44b13b8b7667699c8bcb82441ad52
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