X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_red.c;h=37841b320ee06c82610fe80a6d91c0b7550a651f;hb=e45ae7065e92ade35d6a3883a986a4210c78cc24;hp=7cf2221d84b5983f3968f3e232a9a8b57f423cc6;hpb=942405f9e2f2c22aa817be374ccfe939a72df2ce;p=dpdk.git diff --git a/app/test/test_red.c b/app/test/test_red.c index 7cf2221d84..37841b320e 100644 --- a/app/test/test_red.c +++ b/app/test/test_red.c @@ -43,8 +43,6 @@ #include "test.h" -#ifdef RTE_LIBRTE_SCHED - #include #ifdef __INTEL_COMPILER @@ -148,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) @@ -1889,4 +1878,3 @@ static struct test_command red_cmd = { .callback = test_red, }; REGISTER_TEST_COMMAND(red_cmd); -#endif