File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -202,14 +202,7 @@ void timer_int_handler(void *unused /* parameter is not used */
202
202
)
203
203
{
204
204
#ifdef CONFIG_EXECUTION_BENCHMARKING
205
- __asm__ __volatile__ (
206
- "pushl %eax\n\t"
207
- "pushl %edx\n\t"
208
- "rdtsc\n\t"
209
- "mov %eax, arch_timing_tick_start\n\t"
210
- "mov %edx, arch_timing_tick_start+4\n\t"
211
- "pop %edx\n\t"
212
- "pop %eax\n\t" );
205
+ arch_timing_tick_start = z_tsc_read ();
213
206
#endif
214
207
ARG_UNUSED (unused );
215
208
@@ -289,14 +282,7 @@ void timer_int_handler(void *unused /* parameter is not used */
289
282
#endif /*CONFIG_TICKLESS_IDLE*/
290
283
#endif
291
284
#ifdef CONFIG_EXECUTION_BENCHMARKING
292
- __asm__ __volatile__ (
293
- "pushl %eax\n\t"
294
- "pushl %edx\n\t"
295
- "rdtsc\n\t"
296
- "mov %eax, arch_timing_tick_end\n\t"
297
- "mov %edx, arch_timing_tick_end+4\n\t"
298
- "pop %edx\n\t"
299
- "pop %eax\n\t" );
285
+ arch_timing_tick_end = z_tsc_read ();
300
286
#endif /* CONFIG_EXECUTION_BENCHMARKING */
301
287
}
302
288
You can’t perform that action at this time.
0 commit comments