]> asedeno.scripts.mit.edu Git - linux.git/commit
clocksource/drivers/arm_arch_timer: Extract elf_hwcap use to arch-helper
authorAndrew Murray <andrew.murray@arm.com>
Thu, 13 Jun 2019 12:51:02 +0000 (13:51 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Jun 2019 17:49:18 +0000 (19:49 +0200)
commit5a354412567d7de81d69b6ac61c3b7fcebbe497e
tree76e79ad369b435786577762f5c1bc3a1d0d9e38f
parent7117a44bc0eb5d73dc8aa8df92134f736c2099ac
clocksource/drivers/arm_arch_timer: Extract elf_hwcap use to arch-helper

Different mechanisms are used to test and set elf_hwcaps between ARM
and ARM64, this results in the use of ifdeferry 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@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/arm/include/asm/arch_timer.h
arch/arm64/include/asm/arch_timer.h
drivers/clocksource/arm_arch_timer.c