diff options
author | Pragnesh Patel <pragnesh.patel@sifive.com> | 2021-01-17 18:11:24 +0530 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2021-01-18 11:06:32 +0800 |
commit | a80f85138c9457141c799c022b5c924252031512 (patch) | |
tree | 449fbc79c6369b75d69b878ce63dbe3a581e0fd6 /drivers/timer/sifive_clint_timer.c | |
parent | 8f78e527942b81a4e1e0d20c2ee0a76daeb4e1e0 (diff) |
trace: select TIMER_EARLY to avoid infinite recursion
When tracing functions is enabled this adds calls to
__cyg_profile_func_enter() and __cyg_profile_func_exit() to the traced
functions.
__cyg_profile_func_enter() and __cyg_profile_func_exit() invoke
timer_get_us() to record the entry and exit time.
initr_dm() will make gd->dm_root = NULL and gd->timer = NULL, so
timer_get_us() -> get_ticks() -> dm_timer_init() will lead to an
indefinite recursion.
So select TIMER_EARLY when tracing got enabled.
Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'drivers/timer/sifive_clint_timer.c')
0 files changed, 0 insertions, 0 deletions