From 292f011035a22f3751aea1bed027158e395510bf Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 20 Aug 2008 20:15:37 +0000 Subject: [PATCH] update test git-svn-id: http://ltt.polymtl.ca/svn@3048 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/tests/kernel/test-wbias-rwlock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/tests/kernel/test-wbias-rwlock.c b/trunk/tests/kernel/test-wbias-rwlock.c index 20835b03..5c7dde65 100644 --- a/trunk/tests/kernel/test-wbias-rwlock.c +++ b/trunk/tests/kernel/test-wbias-rwlock.c @@ -53,7 +53,7 @@ * 1 : test with thread preemption readers. * 0 : test only with non-preemptable thread readers. */ -#define TEST_PREEMPT 0 +#define TEST_PREEMPT 1 #if (TEST_PREEMPT) #define NR_PREADERS 2 @@ -703,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, @@ -713,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(); -- 2.34.1