diff options
author | Arnd Bergmann <arnd@arndb.de> | 2006-01-04 14:31:28 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 23:44:43 -0500 |
commit | 8837d9216f99048636fbb2c11347358e99e06181 (patch) | |
tree | 26e5cab20e59879f5e3271ea73c0320ae31da140 /include/asm-powerpc | |
parent | 3f51dd91c80746a5cf76f8c4a77bfc88aa82bb9e (diff) |
[PATCH] spufs: clean up use of bitops
checking bits manually might not be synchonized with
the use of set_bit/clear_bit. Make sure we always use
the correct bitops by removing the unnecessary
identifiers.
Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/spu.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index ee337e37195c..6b2aea0f6f20 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -102,10 +102,8 @@ | |||
102 | #define MFC_MULTI_SRC_EVENT 0x00001000 | 102 | #define MFC_MULTI_SRC_EVENT 0x00001000 |
103 | 103 | ||
104 | /* Flags indicating progress during context switch. */ | 104 | /* Flags indicating progress during context switch. */ |
105 | #define SPU_CONTEXT_SWITCH_PENDING_nr 0UL | 105 | #define SPU_CONTEXT_SWITCH_PENDING 0UL |
106 | #define SPU_CONTEXT_SWITCH_ACTIVE_nr 1UL | 106 | #define SPU_CONTEXT_SWITCH_ACTIVE 1UL |
107 | #define SPU_CONTEXT_SWITCH_PENDING (1UL << SPU_CONTEXT_SWITCH_PENDING_nr) | ||
108 | #define SPU_CONTEXT_SWITCH_ACTIVE (1UL << SPU_CONTEXT_SWITCH_ACTIVE_nr) | ||
109 | 107 | ||
110 | struct spu_context; | 108 | struct spu_context; |
111 | struct spu_runqueue; | 109 | struct spu_runqueue; |