update test
[lttv.git] / trunk / tests / kernel / test-wbias-rwlock.c
index 407eecaca293f6b49bdf83659ed625a20298ac9f..5c7dde65f797d635b9568833f3f39e1d27eaf25a 100644 (file)
@@ -146,7 +146,6 @@ static DEFINE_WBIAS_RWLOCK(wbiasrwlock);
 #define wrap_write_trylock_subscribed()                \
        wbias_write_trylock_subscribed(&wbiasrwlock)
 #else
-#else
 #define wrap_write_lock()      wbias_write_lock_atomic(&wbiasrwlock)
 #define wrap_write_unlock()    wbias_write_unlock_atomic(&wbiasrwlock)
 #define wrap_write_trylock_else_subscribe()    \
@@ -704,6 +703,7 @@ static int my_open(struct inode *inode, struct file *file)
 
        wbias_rwlock_profile_latency_print();
 
+#if (TEST_PREEMPT)
        printk("** Single non-preemptable reader test, no contention **\n");
        wbias_rwlock_profile_latency_reset();
        npreader_threads[0] = kthread_run(npreader_thread, (void *)0,
@@ -714,6 +714,7 @@ static int my_open(struct inode *inode, struct file *file)
        printk("\n");
 
        wbias_rwlock_profile_latency_print();
+#endif
 
        printk("** Multiple p/non-p readers test, no contention **\n");
        wbias_rwlock_profile_latency_reset();
This page took 0.023237 seconds and 4 git commands to generate.