Re: [PATCH v4 2/5] arm64: Allow a capability to be checked on a single CPU

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:32PM +0100, Suzuki K. Poulose wrote: > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -1005,6 +1005,24 @@ static void __init setup_feature_capabilities(void) > enable_cpu_capabilities(arm64_features); > } > > +/* > + * Check

Re: [PATCH v4 2/5] arm64: Allow a capability to be checked on a single CPU

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:32PM +0100, Suzuki K. Poulose wrote: > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -1005,6 +1005,24 @@ static void __init setup_feature_capabilities(void) > enable_cpu_capabilities(arm64_features); > } > > +/* > + * Check

[PATCH v4 2/5] arm64: Allow a capability to be checked on a single CPU

2016-04-22 Thread Suzuki K Poulose
From: Marc Zyngier Now that the capabilities are only available once all the CPUs have booted, we're unable to check for a particular feature in any subsystem that gets initialized before then. In order to support this, introduce a local_cpu_has_cap() function that tests

[PATCH v4 2/5] arm64: Allow a capability to be checked on a single CPU

2016-04-22 Thread Suzuki K Poulose
From: Marc Zyngier Now that the capabilities are only available once all the CPUs have booted, we're unable to check for a particular feature in any subsystem that gets initialized before then. In order to support this, introduce a local_cpu_has_cap() function that tests for the presence of a