arm64: add cpu_capabilities bitmap
authorAndre Przywara <andre.przywara@arm.com>
Fri, 14 Nov 2014 15:54:07 +0000 (15:54 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 25 Nov 2014 13:22:37 +0000 (13:22 +0000)
commit930da09f5e50dd22fb0a8600388da8677d62d671
treec2cfac924f9513700dad6bffdda1b8838b73b145
parent909633957d85561dab7655d69a9d17dd16231d92
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>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/setup.c