[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190610130325.GB25803@arrakis.emea.arm.com>
Date: Mon, 10 Jun 2019 14:03:25 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: Andrew Murray <andrew.murray@....com>
Cc: Mark Rutland <mark.rutland@....com>,
Marc Zyngier <marc.zyngier@....com>,
Will Deacon <will.deacon@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clocksource/arm_arch_timer: extract elf_hwcap use to
arch-helper
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
Powered by blists - more mailing lists