add images
[lttv.git] / tests / kernel / test-cmpxchg.c
index 77eafaf084ffdaf95e113fd53f17aadde7149519..ea5120d3af1f3898578d75ac18394afacba9da30 100644 (file)
 
 #define NR_LOOPS 20000
 
-
 volatile int test_val = 100;
 
 
-static void do_test(void)
+static inline void do_test(void)
 {
        int val, ret;
 
@@ -25,7 +24,7 @@ static void do_test(void)
        ret = cmpxchg(&test_val, val, val+1);
 }
 
-void (*fct)(void) = do_test;
+//void (*fct)(void) = do_test;
 
 static int ltt_test_init(void)
 {
@@ -51,7 +50,7 @@ static int ltt_test_init(void)
        time = time2 - time1;
        tot_time += time;
 
-       printk(KERN_ALERT "test results : time per probe\n");
+       printk(KERN_ALERT "test results : time for cmpxchg\n");
        printk(KERN_ALERT "number of loops : %d\n", NR_LOOPS);
        printk(KERN_ALERT "total time : %llu\n", tot_time);
        //printk(KERN_ALERT "min : %llu\n", min_time);
This page took 0.049612 seconds and 4 git commands to generate.