Re: [PATCH v2 14/22] arm64: Cleanup HWCAP handling

2015-10-08 Thread Edward Nevill
On Thu, 2015-10-08 at 14:00 +0100, Catalin Marinas wrote: > On Thu, Oct 08, 2015 at 12:17:09PM +0100, Russell King - ARM Linux wrote: > > On Thu, Oct 08, 2015 at 12:10:00PM +0100, Catalin Marinas wrote: > > > On Mon, Oct 05, 2015 at 06:02:03PM +0100, Suzuki K. Poulose wrote: > > > > +static bool cp

Re: [PATCH v2 14/22] arm64: Cleanup HWCAP handling

2015-10-08 Thread Catalin Marinas
On Thu, Oct 08, 2015 at 12:17:09PM +0100, Russell King - ARM Linux wrote: > On Thu, Oct 08, 2015 at 12:10:00PM +0100, Catalin Marinas wrote: > > On Mon, Oct 05, 2015 at 06:02:03PM +0100, Suzuki K. Poulose wrote: > > > +static bool cpus_have_hwcap(const struct arm64_cpu_capabilities *cap) > > > +{ >

Re: [PATCH v2 14/22] arm64: Cleanup HWCAP handling

2015-10-08 Thread Russell King - ARM Linux
On Thu, Oct 08, 2015 at 12:10:00PM +0100, Catalin Marinas wrote: > On Mon, Oct 05, 2015 at 06:02:03PM +0100, Suzuki K. Poulose wrote: > > +static bool cpus_have_hwcap(const struct arm64_cpu_capabilities *cap) > > +{ > > + switch(cap->hwcap_type) { > > + case CAP_HWCAP: > > + return !!

Re: [PATCH v2 14/22] arm64: Cleanup HWCAP handling

2015-10-08 Thread Catalin Marinas
On Mon, Oct 05, 2015 at 06:02:03PM +0100, Suzuki K. Poulose wrote: > +static bool cpus_have_hwcap(const struct arm64_cpu_capabilities *cap) > +{ > + switch(cap->hwcap_type) { > + case CAP_HWCAP: > + return !!(elf_hwcap & cap->hwcap); > +#ifdef CONFIG_COMPAT > + case CAP_COMP

[PATCH v2 14/22] arm64: Cleanup HWCAP handling

2015-10-05 Thread Suzuki K. Poulose
Extend struct arm64_cpu_capabilities to handle the HWCAP detection and make use of the system wide value for the feature register. Signed-off-by: Suzuki K. Poulose --- arch/arm64/include/asm/cpufeature.h |2 + arch/arm64/include/asm/hwcap.h |8 ++ arch/arm64/kernel/cpufeature.c