benchmarks: rename _NanoTscRead -> _tsc_read
Change-Id: Id5687f79ac13136f14a14d250e149436a0173f04 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
608abd987c
commit
12ffc58d4b
9 changed files with 11 additions and 12 deletions
|
@ -62,7 +62,7 @@ void nano_cpu_idle(void)
|
|||
_int_latency_stop();
|
||||
_sys_k_event_logger_enter_sleep();
|
||||
#if defined(CONFIG_BOOT_TIME_MEASUREMENT)
|
||||
__idle_tsc = _NanoTscRead();
|
||||
__idle_tsc = _tsc_read();
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NANOKERNEL) && defined(CONFIG_TICKLESS_IDLE)
|
||||
|
|
|
@ -187,11 +187,10 @@ static ALWAYS_INLINE unsigned int find_msb_set(uint32_t op)
|
|||
|
||||
|
||||
/**
|
||||
*
|
||||
* _NanoTscRead - read timestamp register ensuring serialization
|
||||
* @brief read timestamp register ensuring serialization
|
||||
*/
|
||||
|
||||
static inline uint64_t _NanoTscRead(void)
|
||||
static inline uint64_t _tsc_read(void)
|
||||
{
|
||||
union {
|
||||
struct {
|
||||
|
|
|
@ -444,7 +444,7 @@ int _k_kernel_idle(void)
|
|||
|
||||
extern uint64_t __idle_tsc;
|
||||
|
||||
__idle_tsc = _NanoTscRead();
|
||||
__idle_tsc = _tsc_read();
|
||||
#endif
|
||||
|
||||
for (;;) {
|
||||
|
|
|
@ -82,7 +82,7 @@ void _main(void)
|
|||
*/
|
||||
extern uint64_t __main_tsc;
|
||||
|
||||
__main_tsc = _NanoTscRead();
|
||||
__main_tsc = _tsc_read();
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
@ -138,7 +138,7 @@ void idle(void *unused1, void *unused2, void *unused3)
|
|||
|
||||
extern uint64_t __idle_tsc;
|
||||
|
||||
__idle_tsc = _NanoTscRead();
|
||||
__idle_tsc = _tsc_read();
|
||||
#endif
|
||||
|
||||
for (;;) {
|
||||
|
|
|
@ -201,7 +201,7 @@ static void _main(void *unused1, void *unused2, void *unused3)
|
|||
/* record timestamp for kernel's _main() function */
|
||||
extern uint64_t __main_tsc;
|
||||
|
||||
__main_tsc = _NanoTscRead();
|
||||
__main_tsc = _tsc_read();
|
||||
#endif
|
||||
|
||||
extern void main(void);
|
||||
|
|
|
@ -46,7 +46,7 @@ void bootTimeTask(void)
|
|||
uint64_t idle_us; /* begin of idle timestamp in us */
|
||||
uint64_t s_idle_tsc; /*__start->idle timestamp */
|
||||
|
||||
task_tsc = _NanoTscRead();
|
||||
task_tsc = _tsc_read();
|
||||
/* Go to sleep for 1 tick in order to timestamp when IdleTask halts. */
|
||||
task_sleep(1);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ void bootTimeTask(void)
|
|||
uint64_t s_main_tsc; /* __start->main timestamp */
|
||||
uint64_t s_task_tsc; /*__start->task timestamp */
|
||||
|
||||
task_tsc = _NanoTscRead();
|
||||
task_tsc = _tsc_read();
|
||||
|
||||
_start_us = __start_tsc / CONFIG_CPU_CLOCK_FREQ_MHZ;
|
||||
s_main_tsc = __main_tsc-__start_tsc;
|
||||
|
@ -86,7 +86,7 @@ char __stack fiberStack[512];
|
|||
void main(void)
|
||||
{
|
||||
/* record timestamp for nanokernel's main() function */
|
||||
__main_tsc = _NanoTscRead();
|
||||
__main_tsc = _tsc_read();
|
||||
|
||||
/* create bootTime fibers */
|
||||
task_fiber_start(fiberStack, 512, (nano_fiber_entry_t) bootTimeTask,
|
||||
|
|
|
@ -48,7 +48,7 @@ typedef uint64_t _timer_res_t;
|
|||
|
||||
/* timestamp routines */
|
||||
#define _TIMESTAMP_OPEN()
|
||||
#define _TIMESTAMP_READ() (_NanoTscRead())
|
||||
#define _TIMESTAMP_READ() (_tsc_read())
|
||||
#define _TIMESTAMP_CLOSE()
|
||||
|
||||
#elif defined(CONFIG_ARM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue