Re: [PATCH] clocksource/arm_arch_timer: extract elf_hwcap use to arch-helper

From: Will Deacon
Date: Mon Jun 10 2019 - 08:13:25 EST


On Tue, Apr 30, 2019 at 02:14:13PM +0100, Andrew Murray wrote:
> Different mechanisms are used to test and set elf_hwcaps between ARM
> and ARM64, this results in the use of #ifdef's in this file when
> setting/testing for the EVTSTRM hwcap.
>
> Let's improve readability by extracting this to an arch helper.
>
> Signed-off-by: Andrew Murray <andrew.murray@xxxxxxx>
> ---
> arch/arm/include/asm/arch_timer.h | 13 +++++++++++++
> arch/arm64/include/asm/arch_timer.h | 13 +++++++++++++
> drivers/clocksource/arm_arch_timer.c | 15 ++-------------
> 3 files changed, 28 insertions(+), 13 deletions(-)

Acked-by: Will Deacon <will.deacon@xxxxxxx>

I assume this is going via Marc Z.

Will