Catalin Marinas efd9e03fac arm64: Use static keys for CPU features
This patch adds static keys transparently for all the cpu_hwcaps
features by implementing an array of default-false static keys and
enabling them when detected. The cpus_have_cap() check uses the static
keys if the feature being checked is a constant, otherwise the compiler
generates the bitmap test.

Because of the early call to static_branch_enable() via
check_local_cpu_errata() -> update_cpu_capabilities(), the jump labels
are initialised in cpuinfo_store_boot_cpu().

Cc: Will Deacon <will.deacon@arm.com>
Cc: Suzuki K. Poulose <Suzuki.Poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2016-09-07 09:41:42 +01:00
..
2016-08-25 18:00:29 +01:00
2012-09-17 13:42:21 +01:00
2016-08-25 18:00:29 +01:00
2016-07-27 11:16:05 -07:00
2016-07-27 11:16:05 -07:00
2016-06-27 16:31:25 +01:00
2016-06-27 16:31:25 +01:00
2016-03-04 18:19:17 +00:00
2016-06-27 16:31:25 +01:00
2016-05-16 17:17:24 -07:00
2016-07-19 15:03:20 +01:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:24 +00:00
2016-08-01 12:23:44 -05:00
2016-05-20 17:58:30 -07:00
2016-08-31 12:31:38 +01:00
2016-09-07 09:41:42 +01:00
2016-04-20 12:22:42 +01:00