test: repair test_tickless for ARC because _tsc_read is now present

A _tsc_read has been added for ARC targets.
This test can use that when ARC.

See ZEP-1413

Change-Id: Ib63aecbe9f3eb2b97ad1086fc79b57e8f0774fca
Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
This commit is contained in:
Chuck Jordan 2017-02-15 19:54:55 -08:00 committed by Anas Nashif
commit 674db4df9a
2 changed files with 3 additions and 4 deletions

View file

@ -2,4 +2,3 @@ ccflags-y += -I${ZEPHYR_BASE}/tests/include
obj-y = test_tickless.o
obj-$(CONFIG_ARM) += timestamps.o
obj-$(CONFIG_ARC) += timestamps.o

View file

@ -32,7 +32,7 @@ extern int32_t _sys_idle_threshold_ticks;
* timestamp routines.
*/
#if defined(CONFIG_X86)
#if defined(CONFIG_X86) || defined(CONFIG_ARC)
typedef uint64_t _timer_res_t;
#define _TIMER_ZERO 0ULL
@ -123,7 +123,7 @@ void ticklessTestTask(void)
}
cal_tsc /= CAL_REPS;
#if defined(CONFIG_X86)
#if defined(CONFIG_X86) || defined(CONFIG_ARC)
printk("Calibrated time stamp period = 0x%x%x\n",
(uint32_t)(cal_tsc >> 32), (uint32_t)(cal_tsc & 0xFFFFFFFFLL));
#elif defined(CONFIG_ARM) || defined(CONFIG_SOC_QUARK_SE_C1000_SS)
@ -160,7 +160,7 @@ void ticklessTestTask(void)
printk("end ticks : %d\n", end_ticks);
printk("diff ticks : %d\n", diff_ticks);
#if defined(CONFIG_X86)
#if defined(CONFIG_X86) || defined(CONFIG_ARC)
printk("diff time stamp: 0x%x%x\n",
(uint32_t)(diff_tsc >> 32), (uint32_t)(diff_tsc & 0xFFFFFFFFULL));
printk("Cal time stamp: 0x%x%x\n",