Re: [PATCH v2 2/2] arm64: Use static keys for CPU features

2016-09-08 Thread Catalin Marinas
On Wed, Sep 07, 2016 at 12:59:52PM -0400, Jason Baron wrote: > On 09/05/2016 01:25 PM, Catalin Marinas wrote: > > 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_ca

Re: [PATCH v2 2/2] arm64: Use static keys for CPU features

2016-09-07 Thread Jason Baron
On 09/05/2016 01:25 PM, Catalin Marinas wrote: 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

[PATCH v2 2/2] arm64: Use static keys for CPU features

2016-09-05 Thread Catalin Marinas
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 tes