Commit ef5b570
powerpc/irq: Don't open code irq_soft_mask helpers
Use READ_ONCE() and WRITE_ONCE() instead of open coding
read and write of local PACA irq_soft_mask.
For the write, add a barrier to keep the memory clobber
that was there previously.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/e2454434992cc932a5a34b695ae981c0b2f4c28e.1652862729.git.christophe.leroy@csgroup.eu1 parent 9855230 commit ef5b570
1 file changed
+7
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 116 | + | |
124 | 117 | | |
125 | 118 | | |
126 | 119 | | |
| |||
148 | 141 | | |
149 | 142 | | |
150 | 143 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 144 | + | |
| 145 | + | |
157 | 146 | | |
158 | 147 | | |
159 | 148 | | |
160 | 149 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 150 | + | |
166 | 151 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 152 | + | |
173 | 153 | | |
174 | 154 | | |
175 | 155 | | |
176 | 156 | | |
177 | 157 | | |
178 | 158 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 159 | + | |
187 | 160 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 161 | + | |
191 | 162 | | |
192 | 163 | | |
193 | 164 | | |
| |||
0 commit comments