app/test: replace x86 fence by multi arch function

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
This commit is contained in:
Jerin Jacob 2015-08-30 14:25:22 +05:30 committed by Thomas Monjalon
parent c3be840973
commit da68ad4f55

View File

@ -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)