From: Jerin Jacob Date: Sun, 30 Aug 2015 08:55:22 +0000 (+0530) Subject: app/test: replace x86 fence by multi arch function X-Git-Tag: spdx-start~8485 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=da68ad4f554cce7c2350c8a37c9f3e0daadb7cf0;p=dpdk.git app/test: replace x86 fence by multi arch function Signed-off-by: Jerin Jacob --- diff --git a/app/test/test_red.c b/app/test/test_red.c index 262df72995..37841b320e 100644 --- a/app/test/test_red.c +++ b/app/test/test_red.c @@ -146,16 +146,7 @@ static void rdtsc_prof_init(struct rdtsc_prof *p, const char *name) static inline void rdtsc_prof_start(struct rdtsc_prof *p) { -#ifdef __PIC__ - asm volatile ( - "mov %%ebx, %%edi\n" - "cpuid\n" - "xchgl %%ebx, %%edi;\n" - : : : "%eax", "%edi", "%ecx", "%edx" ); -#else - asm( "cpuid" : : : "%eax", "%ebx", "%ecx", "%edx" ); -#endif - p->clk_start = rte_rdtsc(); + p->clk_start = rte_rdtsc_precise(); } static inline void rdtsc_prof_end(struct rdtsc_prof *p)