update test
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 20 Aug 2008 20:15:37 +0000 (20:15 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 20 Aug 2008 20:15:37 +0000 (20:15 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@3048 04897980-b3bd-0310-b5e0-8ef037075253

trunk/tests/kernel/test-wbias-rwlock.c

index 20835b034f663e410445659196803050657b4ba8..5c7dde65f797d635b9568833f3f39e1d27eaf25a 100644 (file)
@@ -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();
This page took 0.024858 seconds and 4 git commands to generate.