X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=trunk%2Ftests%2Fkernel%2Ftest-wbias-rwlock.c;h=5c7dde65f797d635b9568833f3f39e1d27eaf25a;hb=292f011035a22f3751aea1bed027158e395510bf;hp=407eecaca293f6b49bdf83659ed625a20298ac9f;hpb=992fbe0fb33ea99a08e9232c353f9f6f32b7bda1;p=lttv.git diff --git a/trunk/tests/kernel/test-wbias-rwlock.c b/trunk/tests/kernel/test-wbias-rwlock.c index 407eecac..5c7dde65 100644 --- a/trunk/tests/kernel/test-wbias-rwlock.c +++ b/trunk/tests/kernel/test-wbias-rwlock.c @@ -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();