File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -313,31 +313,6 @@ static inline void up_read(struct rw_semaphore *sem)
313313# define fallthrough do {} while (0) /* fallthrough */
314314#endif
315315
316- /**
317- * __set_bit - Set a bit in memory
318- * @nr: the bit to set
319- * @addr: the address to start counting from
320- *
321- * Unlike set_bit(), this function is non-atomic and may be reordered.
322- * If it's called on the same region of memory simultaneously, the effect
323- * may be that only one operation succeeds.
324- */
325- static inline void __set_bit (int nr , volatile unsigned long * addr )
326- {
327- unsigned long mask = BITOP_MASK (nr );
328- unsigned long * p = ((unsigned long * )addr ) + BITOP_WORD (nr );
329-
330- * p |= mask ;
331- }
332-
333- static inline void __clear_bit (int nr , volatile unsigned long * addr )
334- {
335- unsigned long mask = BITOP_MASK (nr );
336- unsigned long * p = ((unsigned long * )addr ) + BITOP_WORD (nr );
337-
338- * p &= ~mask ;
339- }
340-
341316/**
342317 * test_bit - Determine whether a bit is set
343318 * @nr: bit number to test
You can’t perform that action at this time.
0 commit comments