Skip to content

Commit

Permalink
zephyr: remove infinite recursion on Broadwell
Browse files Browse the repository at this point in the history
Broadwell support with Zephyr had only been dry-coded, it has never
been tested, and it contains an infinite recursion bug: functions
platform_timer_get() and arch_timer_get_system() call each other
infinitely. Break the recursion formally, until a proper fix is
available.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh authored and lgirdwood committed Nov 21, 2020
1 parent dc343f1 commit 536800a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zephyr/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ uint64_t platform_timer_get(struct timer *timer)

return time;
#elif defined(CONFIG_SOC_SERIES_INTEL_ADSP_BROADWELL)
return arch_timer_get_system(timer);
// FIXME!
return 0;
#else
/* CAVS versions */
return shim_read64(SHIM_DSPWC);
Expand Down

0 comments on commit 536800a

Please sign in to comment.