summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2015-08-30 14:25:22 +0530
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-09-08 08:51:25 +0200
commitda68ad4f554cce7c2350c8a37c9f3e0daadb7cf0 (patch)
tree742b00e1e95624118891c61544b893455b9f0185 /app
parentc3be8409738d3257386cd96dc86a77366d6cfb01 (diff)
downloaddpdk-da68ad4f554cce7c2350c8a37c9f3e0daadb7cf0.zip
dpdk-da68ad4f554cce7c2350c8a37c9f3e0daadb7cf0.tar.gz
dpdk-da68ad4f554cce7c2350c8a37c9f3e0daadb7cf0.tar.xz
app/test: replace x86 fence by multi arch function
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Diffstat (limited to 'app')
-rw-r--r--app/test/test_red.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/test/test_red.c b/app/test/test_red.c
index 262df72..37841b3 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)