add missing tests
[lttv.git] / tests / kernel / test-cmpxchg.c
index 16d56a519bac82cd563dea59c424650653c79692..69a25334219fc9ef8ec275b3b266212ca740b3db 100644 (file)
 #include <linux/init.h>
 #include <linux/module.h>
 
-#define NR_LOOPS 2000
+#define NR_LOOPS 20000
 
 volatile int test_val = 100;
 
 
-static void do_test(void)
+static inline void do_test(void)
 {
        int val, ret;
 
@@ -24,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)
 {
This page took 0.026797 seconds and 4 git commands to generate.