]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: add cpu_capabilities bitmap
authorAndre Przywara <andre.przywara@arm.com>
Fri, 24 Apr 2015 17:30:45 +0000 (10:30 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 27 Apr 2015 21:13:43 +0000 (17:13 -0400)
commit9a21c96c4672f02cc195c69ec083b3e664bd2221
treee231aa73e368cc8c88474ea506244b4ea1514c05
parentdd6903432858c88c0b277f936352af248da9fe7e
arm64: add cpu_capabilities bitmap

For taking note if at least one CPU in the system needs a bug
workaround or would benefit from a code optimization, we create a new
bitmap to hold (artificial) feature bits.
Since elf_hwcap is part of the userland ABI, we keep it alone and
introduce a new data structure for that (along with some accessors).

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: <stable@vger.kernel.org> # v3.18.y
(cherry picked from commit 930da09f5e50dd22fb0a8600388da8677d62d671)
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/setup.c