hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/arm/include/asm/bitops.h
....@@ -40,9 +40,9 @@
4040
4141 p += BIT_WORD(bit);
4242
43
- raw_local_irq_save(flags);
43
+ flags = hard_local_irq_save();
4444 *p |= mask;
45
- raw_local_irq_restore(flags);
45
+ hard_local_irq_restore(flags);
4646 }
4747
4848 static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p)
....@@ -52,9 +52,9 @@
5252
5353 p += BIT_WORD(bit);
5454
55
- raw_local_irq_save(flags);
55
+ flags = hard_local_irq_save();
5656 *p &= ~mask;
57
- raw_local_irq_restore(flags);
57
+ hard_local_irq_restore(flags);
5858 }
5959
6060 static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p)
....@@ -64,9 +64,9 @@
6464
6565 p += BIT_WORD(bit);
6666
67
- raw_local_irq_save(flags);
67
+ flags = hard_local_irq_save();
6868 *p ^= mask;
69
- raw_local_irq_restore(flags);
69
+ hard_local_irq_restore(flags);
7070 }
7171
7272 static inline int
....@@ -78,10 +78,10 @@
7878
7979 p += BIT_WORD(bit);
8080
81
- raw_local_irq_save(flags);
81
+ flags = hard_local_irq_save();
8282 res = *p;
8383 *p = res | mask;
84
- raw_local_irq_restore(flags);
84
+ hard_local_irq_restore(flags);
8585
8686 return (res & mask) != 0;
8787 }
....@@ -95,10 +95,10 @@
9595
9696 p += BIT_WORD(bit);
9797
98
- raw_local_irq_save(flags);
98
+ flags = hard_local_irq_save();
9999 res = *p;
100100 *p = res & ~mask;
101
- raw_local_irq_restore(flags);
101
+ hard_local_irq_restore(flags);
102102
103103 return (res & mask) != 0;
104104 }
....@@ -112,10 +112,10 @@
112112
113113 p += BIT_WORD(bit);
114114
115
- raw_local_irq_save(flags);
115
+ flags = hard_local_irq_save();
116116 res = *p;
117117 *p = res ^ mask;
118
- raw_local_irq_restore(flags);
118
+ hard_local_irq_restore(flags);
119119
120120 return (res & mask) != 0;
121121 }