tests: benchmarks: timing_info: Enable benchmarks for xtensa.

This patch provides support needed to get timing related
information from xtensa based SOC.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
Adithya Baglody 2018-07-23 13:49:26 +05:30 committed by Anas Nashif
commit bb918d85f8
6 changed files with 46 additions and 7 deletions

View file

@ -220,6 +220,10 @@ xtensa_switch:
* sanity.
*/
l32i a1, a2, BSA_A2_OFF
#ifdef CONFIG_EXECUTION_BENCHMARKING
call4 read_timer_end_of_swap
#endif
j _restore_context
_switch_restore_pc:
retw