move everything out of trunk
[lttv.git] / tests / kernel / test-cmpxchg.c
index 77eafaf084ffdaf95e113fd53f17aadde7149519..58264a934999e0803df4a2379b4c398b03f6e139 100644 (file)
@@ -4,7 +4,6 @@
  */
 
 
-#include <linux/config.h>
 #include <linux/jiffies.h>
 #include <linux/compiler.h>
 #include <linux/init.h>
 
 #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 +23,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 +49,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.022707 seconds and 4 git commands to generate.