| .. | .. |
|---|
| 40 | 40 | |
|---|
| 41 | 41 | p += BIT_WORD(bit); |
|---|
| 42 | 42 | |
|---|
| 43 | | - raw_local_irq_save(flags); |
|---|
| 43 | + flags = hard_local_irq_save(); |
|---|
| 44 | 44 | *p |= mask; |
|---|
| 45 | | - raw_local_irq_restore(flags); |
|---|
| 45 | + hard_local_irq_restore(flags); |
|---|
| 46 | 46 | } |
|---|
| 47 | 47 | |
|---|
| 48 | 48 | static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p) |
|---|
| .. | .. |
|---|
| 52 | 52 | |
|---|
| 53 | 53 | p += BIT_WORD(bit); |
|---|
| 54 | 54 | |
|---|
| 55 | | - raw_local_irq_save(flags); |
|---|
| 55 | + flags = hard_local_irq_save(); |
|---|
| 56 | 56 | *p &= ~mask; |
|---|
| 57 | | - raw_local_irq_restore(flags); |
|---|
| 57 | + hard_local_irq_restore(flags); |
|---|
| 58 | 58 | } |
|---|
| 59 | 59 | |
|---|
| 60 | 60 | static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p) |
|---|
| .. | .. |
|---|
| 64 | 64 | |
|---|
| 65 | 65 | p += BIT_WORD(bit); |
|---|
| 66 | 66 | |
|---|
| 67 | | - raw_local_irq_save(flags); |
|---|
| 67 | + flags = hard_local_irq_save(); |
|---|
| 68 | 68 | *p ^= mask; |
|---|
| 69 | | - raw_local_irq_restore(flags); |
|---|
| 69 | + hard_local_irq_restore(flags); |
|---|
| 70 | 70 | } |
|---|
| 71 | 71 | |
|---|
| 72 | 72 | static inline int |
|---|
| .. | .. |
|---|
| 78 | 78 | |
|---|
| 79 | 79 | p += BIT_WORD(bit); |
|---|
| 80 | 80 | |
|---|
| 81 | | - raw_local_irq_save(flags); |
|---|
| 81 | + flags = hard_local_irq_save(); |
|---|
| 82 | 82 | res = *p; |
|---|
| 83 | 83 | *p = res | mask; |
|---|
| 84 | | - raw_local_irq_restore(flags); |
|---|
| 84 | + hard_local_irq_restore(flags); |
|---|
| 85 | 85 | |
|---|
| 86 | 86 | return (res & mask) != 0; |
|---|
| 87 | 87 | } |
|---|
| .. | .. |
|---|
| 95 | 95 | |
|---|
| 96 | 96 | p += BIT_WORD(bit); |
|---|
| 97 | 97 | |
|---|
| 98 | | - raw_local_irq_save(flags); |
|---|
| 98 | + flags = hard_local_irq_save(); |
|---|
| 99 | 99 | res = *p; |
|---|
| 100 | 100 | *p = res & ~mask; |
|---|
| 101 | | - raw_local_irq_restore(flags); |
|---|
| 101 | + hard_local_irq_restore(flags); |
|---|
| 102 | 102 | |
|---|
| 103 | 103 | return (res & mask) != 0; |
|---|
| 104 | 104 | } |
|---|
| .. | .. |
|---|
| 112 | 112 | |
|---|
| 113 | 113 | p += BIT_WORD(bit); |
|---|
| 114 | 114 | |
|---|
| 115 | | - raw_local_irq_save(flags); |
|---|
| 115 | + flags = hard_local_irq_save(); |
|---|
| 116 | 116 | res = *p; |
|---|
| 117 | 117 | *p = res ^ mask; |
|---|
| 118 | | - raw_local_irq_restore(flags); |
|---|
| 118 | + hard_local_irq_restore(flags); |
|---|
| 119 | 119 | |
|---|
| 120 | 120 | return (res & mask) != 0; |
|---|
| 121 | 121 | } |
|---|