From fa22ecffec9c1cb855e15d55b518c72503756704 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Sat, 21 Sep 2019 16:45:57 -0700 Subject: [PATCH] x86: remove redunant idle timestamp setting This metric shows when the system first enters an idle state, which has already been recorded in the arch- independent implementation of the idle thread. Only x86 was doing this. Signed-off-by: Andrew Boie --- arch/x86/core/cpuhalt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/x86/core/cpuhalt.c b/arch/x86/core/cpuhalt.c index 5afa016a33a..29879a8a141 100644 --- a/arch/x86/core/cpuhalt.c +++ b/arch/x86/core/cpuhalt.c @@ -21,10 +21,6 @@ void z_arch_cpu_idle(void) { sys_trace_idle(); -#if defined(CONFIG_BOOT_TIME_MEASUREMENT) - __idle_time_stamp = k_cycle_get_32(); -#endif - __asm__ volatile ( "sti\n\t" "hlt\n\t");