hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/include/asm-generic/atomic.h
....@@ -76,9 +76,9 @@
7676 { \
7777 unsigned long flags; \
7878 \
79
- raw_local_irq_save(flags); \
79
+ flags = hard_local_irq_save(); \
8080 v->counter = v->counter c_op i; \
81
- raw_local_irq_restore(flags); \
81
+ hard_local_irq_restore(flags); \
8282 }
8383
8484 #define ATOMIC_OP_RETURN(op, c_op) \
....@@ -87,9 +87,9 @@
8787 unsigned long flags; \
8888 int ret; \
8989 \
90
- raw_local_irq_save(flags); \
90
+ flags = hard_local_irq_save(); \
9191 ret = (v->counter = v->counter c_op i); \
92
- raw_local_irq_restore(flags); \
92
+ hard_local_irq_restore(flags); \
9393 \
9494 return ret; \
9595 }
....@@ -100,10 +100,10 @@
100100 unsigned long flags; \
101101 int ret; \
102102 \
103
- raw_local_irq_save(flags); \
103
+ flags = hard_local_irq_save(); \
104104 ret = v->counter; \
105105 v->counter = v->counter c_op i; \
106
- raw_local_irq_restore(flags); \
106
+ hard_local_irq_restore(flags); \
107107 \
108108 return ret; \
109109 }