Skip to content

Commit

Permalink
test: repair test_tickless for ARC because _tsc_read is now present
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cjordan44 authored and Anas Nashif committed Feb 16, 2017
1 parent a234fc4 commit 674db4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/legacy/kernel/test_tickless/microkernel/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 674db4d

Please sign in to comment.