hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/kernel/Kconfig.locks
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # The ARCH_INLINE foo is necessary because select ignores "depends on"
34 #
....@@ -100,7 +101,7 @@
100101 # unlock and unlock_irq functions are inlined when:
101102 # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
102103 # or
103
-# - DEBUG_SPINLOCK=n and PREEMPT=n
104
+# - DEBUG_SPINLOCK=n and PREEMPTION=n
104105 #
105106 # unlock_bh and unlock_irqrestore functions are inlined when:
106107 # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
....@@ -138,7 +139,7 @@
138139
139140 config INLINE_SPIN_UNLOCK_IRQ
140141 def_bool y
141
- depends on !PREEMPT || ARCH_INLINE_SPIN_UNLOCK_IRQ
142
+ depends on !PREEMPTION || ARCH_INLINE_SPIN_UNLOCK_IRQ
142143
143144 config INLINE_SPIN_UNLOCK_IRQRESTORE
144145 def_bool y
....@@ -167,7 +168,7 @@
167168
168169 config INLINE_READ_UNLOCK
169170 def_bool y
170
- depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK
171
+ depends on !PREEMPTION || ARCH_INLINE_READ_UNLOCK
171172
172173 config INLINE_READ_UNLOCK_BH
173174 def_bool y
....@@ -175,7 +176,7 @@
175176
176177 config INLINE_READ_UNLOCK_IRQ
177178 def_bool y
178
- depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK_IRQ
179
+ depends on !PREEMPTION || ARCH_INLINE_READ_UNLOCK_IRQ
179180
180181 config INLINE_READ_UNLOCK_IRQRESTORE
181182 def_bool y
....@@ -204,7 +205,7 @@
204205
205206 config INLINE_WRITE_UNLOCK
206207 def_bool y
207
- depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK
208
+ depends on !PREEMPTION || ARCH_INLINE_WRITE_UNLOCK
208209
209210 config INLINE_WRITE_UNLOCK_BH
210211 def_bool y
....@@ -212,7 +213,7 @@
212213
213214 config INLINE_WRITE_UNLOCK_IRQ
214215 def_bool y
215
- depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK_IRQ
216
+ depends on !PREEMPTION || ARCH_INLINE_WRITE_UNLOCK_IRQ
216217
217218 config INLINE_WRITE_UNLOCK_IRQRESTORE
218219 def_bool y
....@@ -229,7 +230,7 @@
229230
230231 config RWSEM_SPIN_ON_OWNER
231232 def_bool y
232
- depends on SMP && RWSEM_XCHGADD_ALGORITHM && ARCH_SUPPORTS_ATOMIC_RMW
233
+ depends on SMP && ARCH_SUPPORTS_ATOMIC_RMW
233234
234235 config LOCK_SPIN_ON_OWNER
235236 def_bool y
....@@ -242,9 +243,19 @@
242243 def_bool y if ARCH_USE_QUEUED_SPINLOCKS
243244 depends on SMP
244245
246
+config BPF_ARCH_SPINLOCK
247
+ bool
248
+
245249 config ARCH_USE_QUEUED_RWLOCKS
246250 bool
247251
248252 config QUEUED_RWLOCKS
249253 def_bool y if ARCH_USE_QUEUED_RWLOCKS
250254 depends on SMP
255
+
256
+config ARCH_HAS_MMIOWB
257
+ bool
258
+
259
+config MMIOWB
260
+ def_bool y if ARCH_HAS_MMIOWB
261
+ depends on SMP