From 9a8950383d81cedd1a717e637373a554fbd8562c Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 3 Dec 2009 15:11:47 -0800 Subject: [PATCH] sysperf /call-loop test - Ensure the nop() call is not optimized out --- test/sysperf/call1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/sysperf/call1.c b/test/sysperf/call1.c index 0798801c46..4b18e485b4 100644 --- a/test/sysperf/call1.c +++ b/test/sysperf/call1.c @@ -10,8 +10,6 @@ #define LOOP 1000000000 -static void xnop() { } - int main(int ac, char **av) { @@ -20,7 +18,7 @@ main(int ac, char **av) printf("call nop() function in loop\n"); start_timing(); for (i = 0; i < LOOP; ++i) - xnop(); + nop(); stop_timing(LOOP, "loop1/user"); return(0); } -- 2.41.0