This implementation of _tsc_read returns a 64-bit value that is derived from the 64-bit tick count multiplied by hwcycles per tick, and then it adds the current value from the 32-bit timer. This produces a 64-bit time. There is a bunch of math here, which could be avoided if the CPU is built with Real-Time-Clock option. EM Starter Kit SOCs don't have this. I don't think Arduino 101 does either. See ZEP-1559 Change-Id: I9f846d170246556ac40fe2f45809e457c6375d8c Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
19 lines
532 B
Makefile
19 lines
532 B
Makefile
ccflags-y += -I$(srctree)/kernel/include
|
|
ccflags-y +=-I$(srctree)/arch/$(ARCH)/include
|
|
|
|
obj-y += thread.o thread_entry_wrapper.o \
|
|
cpu_idle.o fast_irq.o fatal.o fault.o \
|
|
fault_s.o irq_manage.o cache.o timestamp.o \
|
|
isr_wrapper.o regular_irq.o swap.o \
|
|
sys_fatal_error_handler.o
|
|
|
|
obj-y += prep_c.o \
|
|
reset.o \
|
|
vector_table.o
|
|
|
|
obj-$(CONFIG_IRQ_OFFLOAD) += irq_offload.o
|
|
|
|
# Some ARC cores like the EM4 lack the atomic LLOCK/SCOND and
|
|
# can't use these.
|
|
obj-$(CONFIG_ATOMIC_OPERATIONS_CUSTOM) += atomic.o
|