From: compudj Date: Sat, 16 Aug 2008 21:16:28 +0000 (+0000) Subject: update test fair rwlock X-Git-Tag: v0.12.20~465 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=426d6b670a914ef9368c4ca950ea3c73adc69b15;p=lttv.git update test fair rwlock git-svn-id: http://ltt.polymtl.ca/svn@3024 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/trunk/tests/kernel/test-fair-rwlock.c b/trunk/tests/kernel/test-fair-rwlock.c index ec751a10..64aa29f9 100644 --- a/trunk/tests/kernel/test-fair-rwlock.c +++ b/trunk/tests/kernel/test-fair-rwlock.c @@ -24,10 +24,9 @@ #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