]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: arch_timer: mark functions as __always_inline
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 3 Jun 2019 09:14:02 +0000 (11:14 +0200)
committerWill Deacon <will.deacon@arm.com>
Wed, 5 Jun 2019 12:24:06 +0000 (13:24 +0100)
commit853a579765f5c78b255ba9cb26ed8d1a5f8f518c
tree953a5c0e13ae1aed4a597b7f20c120b1f374ab85
parent57640a0f92ad5e7843f1cfc857f4e51743e3050b
arm64: arch_timer: mark functions as __always_inline

If CONFIG_FUNCTION_GRAPH_TRACER is enabled function
arch_counter_get_cntvct() is marked as notrace. However, function
__arch_counter_get_cntvct is marked as inline. If
CONFIG_OPTIMIZE_INLINING is set that will make the two functions
tracable which they shouldn't.

Rework so that functions __arch_counter_get_* are marked with
__always_inline so they will be inlined even if CONFIG_OPTIMIZE_INLINING
is turned on.

Fixes: 9e02d4cd0d19 ("clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters")
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/arch_timer.h