Pragnesh Patel a80f85138c 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>
2021-01-18 11:06:32 +08:00
..
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-11-30 13:14:43 -07:00
2019-12-02 18:23:07 -05:00
2019-10-31 07:22:53 -04:00
2020-10-30 10:56:11 -04:00
2020-04-24 10:51:32 -04:00
2020-11-05 14:58:45 +08:00
2019-12-06 16:44:20 -05:00
2020-05-18 21:19:18 -04:00
2020-06-12 13:14:07 -04:00
2020-05-18 21:19:18 -04:00
2020-11-05 14:58:45 +08:00
2020-08-24 14:11:31 -04:00
2021-01-05 12:24:40 -07:00
2020-05-01 11:03:24 -04:00
2020-05-18 21:19:18 -04:00
2020-10-27 21:13:15 +01:00
2020-05-18 18:36:55 -04:00
2019-05-05 08:48:50 -04:00