Re: [PATCH] clocksource/arm_arch_timer: extract elf_hwcap use to arch-helper
From: Catalin Marinas
Date: Mon Jun 10 2019 - 09:07:52 EST
On Tue, Apr 30, 2019 at 02:14:13PM +0100, Andrew Murray wrote:
> diff --git a/arch/arm/include/asm/arch_timer.h b/arch/arm/include/asm/arch_timer.h
> index 0a8d7bba2cb0..f21e038dc9f3 100644
> --- a/arch/arm/include/asm/arch_timer.h
> +++ b/arch/arm/include/asm/arch_timer.h
> @@ -4,6 +4,7 @@
>
> #include <asm/barrier.h>
> #include <asm/errno.h>
> +#include <asm/hwcap.h>
> #include <linux/clocksource.h>
> #include <linux/init.h>
> #include <linux/types.h>
> @@ -110,6 +111,18 @@ static inline void arch_timer_set_cntkctl(u32 cntkctl)
> isb();
> }
>
> +static inline bool arch_timer_set_evtstrm_feature(void)
> +{
> + elf_hwcap |= HWCAP_EVTSTRM;
> +#ifdef CONFIG_COMPAT
> + compat_elf_hwcap |= COMPAT_HWCAP_EVTSTRM;
> +#endif
> +}
There is no COMPAT support on arm32.
--
Catalin