]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/arm64/include/asm/arch_timer.h
clocksource/drivers/arm_arch_timer: Avoid infinite recursion when ftrace is enabled
[mirror_ubuntu-zesty-kernel.git] / arch / arm64 / include / asm / arch_timer.h
index a79c6932bf3f147d42b933dbf0dbcbbcc3438c95..7c6c24fafb909cf5e8be5f27c13054730ae8ed65 100644 (file)
@@ -66,13 +66,13 @@ DECLARE_PER_CPU(const struct arch_timer_erratum_workaround *,
        u64 _val;                                                       \
        if (needs_unstable_timer_counter_workaround()) {                \
                const struct arch_timer_erratum_workaround *wa;         \
-               preempt_disable();                                      \
+               preempt_disable_notrace();                              \
                wa = __this_cpu_read(timer_unstable_counter_workaround); \
                if (wa && wa->read_##reg)                               \
                        _val = wa->read_##reg();                        \
                else                                                    \
                        _val = read_sysreg(reg);                        \
-               preempt_enable();                                       \
+               preempt_enable_notrace();                               \
        } else {                                                        \
                _val = read_sysreg(reg);                                \
        }                                                               \