update test fair rwlock
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 16 Aug 2008 21:16:28 +0000 (21:16 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 16 Aug 2008 21:16:28 +0000 (21:16 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@3024 04897980-b3bd-0310-b5e0-8ef037075253

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

index ec751a10f66884cb8f5aa5c7f2c7fe9a98c1b185..64aa29f9ca397d555127b820780faa82360e013a 100644 (file)
 #define HARDIRQ_ROFFSET        ((SOFTIRQ_RMASK | THREAD_RMASK) + 1)
 #define HARDIRQ_RMASK  ((NR_CPUS - 1) * HARDIRQ_ROFFSET)
 
-#define THREAD_WMASK   (1UL << (BITS_PER_LONG - 3))
-#define SOFTIRQ_WMASK  (1UL << (BITS_PER_LONG - 2))
-#define HARDIRQ_WMASK  (1UL << (BITS_PER_LONG - 1))
-
+#define THREAD_WMASK   ((HARDIRQ_RMASK | SOFTIRQ_RMASK | THREAD_RMASK) + 1)
+#define SOFTIRQ_WMASK  (THREAD_WMASK << 1)
+#define HARDIRQ_WMASK  (SOFTIRQ_WMASK << 1)
 
 #define NR_VARS 100
 #define NR_WRITERS 3
This page took 0.035141 seconds and 4 git commands to generate.