Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 1 | # |
| 2 | # The ARCH_INLINE foo is necessary because select ignores "depends on" |
| 3 | # |
| 4 | config ARCH_INLINE_SPIN_TRYLOCK |
| 5 | bool |
| 6 | |
| 7 | config ARCH_INLINE_SPIN_TRYLOCK_BH |
| 8 | bool |
| 9 | |
| 10 | config ARCH_INLINE_SPIN_LOCK |
| 11 | bool |
| 12 | |
| 13 | config ARCH_INLINE_SPIN_LOCK_BH |
| 14 | bool |
| 15 | |
| 16 | config ARCH_INLINE_SPIN_LOCK_IRQ |
| 17 | bool |
| 18 | |
| 19 | config ARCH_INLINE_SPIN_LOCK_IRQSAVE |
| 20 | bool |
| 21 | |
| 22 | config ARCH_INLINE_SPIN_UNLOCK |
| 23 | bool |
| 24 | |
| 25 | config ARCH_INLINE_SPIN_UNLOCK_BH |
| 26 | bool |
| 27 | |
| 28 | config ARCH_INLINE_SPIN_UNLOCK_IRQ |
| 29 | bool |
| 30 | |
| 31 | config ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE |
| 32 | bool |
| 33 | |
| 34 | |
| 35 | config ARCH_INLINE_READ_TRYLOCK |
| 36 | bool |
| 37 | |
| 38 | config ARCH_INLINE_READ_LOCK |
| 39 | bool |
| 40 | |
| 41 | config ARCH_INLINE_READ_LOCK_BH |
| 42 | bool |
| 43 | |
| 44 | config ARCH_INLINE_READ_LOCK_IRQ |
| 45 | bool |
| 46 | |
| 47 | config ARCH_INLINE_READ_LOCK_IRQSAVE |
| 48 | bool |
| 49 | |
| 50 | config ARCH_INLINE_READ_UNLOCK |
| 51 | bool |
| 52 | |
| 53 | config ARCH_INLINE_READ_UNLOCK_BH |
| 54 | bool |
| 55 | |
| 56 | config ARCH_INLINE_READ_UNLOCK_IRQ |
| 57 | bool |
| 58 | |
| 59 | config ARCH_INLINE_READ_UNLOCK_IRQRESTORE |
| 60 | bool |
| 61 | |
| 62 | |
| 63 | config ARCH_INLINE_WRITE_TRYLOCK |
| 64 | bool |
| 65 | |
| 66 | config ARCH_INLINE_WRITE_LOCK |
| 67 | bool |
| 68 | |
| 69 | config ARCH_INLINE_WRITE_LOCK_BH |
| 70 | bool |
| 71 | |
| 72 | config ARCH_INLINE_WRITE_LOCK_IRQ |
| 73 | bool |
| 74 | |
| 75 | config ARCH_INLINE_WRITE_LOCK_IRQSAVE |
| 76 | bool |
| 77 | |
| 78 | config ARCH_INLINE_WRITE_UNLOCK |
| 79 | bool |
| 80 | |
| 81 | config ARCH_INLINE_WRITE_UNLOCK_BH |
| 82 | bool |
| 83 | |
| 84 | config ARCH_INLINE_WRITE_UNLOCK_IRQ |
| 85 | bool |
| 86 | |
| 87 | config ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE |
| 88 | bool |
| 89 | |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 90 | config UNINLINE_SPIN_UNLOCK |
| 91 | bool |
| 92 | |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 93 | # |
| 94 | # lock_* functions are inlined when: |
| 95 | # - DEBUG_SPINLOCK=n and GENERIC_LOCKBREAK=n and ARCH_INLINE_*LOCK=y |
| 96 | # |
| 97 | # trylock_* functions are inlined when: |
| 98 | # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y |
| 99 | # |
| 100 | # unlock and unlock_irq functions are inlined when: |
| 101 | # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y |
| 102 | # or |
| 103 | # - DEBUG_SPINLOCK=n and PREEMPT=n |
| 104 | # |
| 105 | # unlock_bh and unlock_irqrestore functions are inlined when: |
| 106 | # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y |
| 107 | # |
| 108 | |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 109 | if !DEBUG_SPINLOCK |
| 110 | |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 111 | config INLINE_SPIN_TRYLOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 112 | def_bool y |
| 113 | depends on ARCH_INLINE_SPIN_TRYLOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 114 | |
| 115 | config INLINE_SPIN_TRYLOCK_BH |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 116 | def_bool y |
| 117 | depends on ARCH_INLINE_SPIN_TRYLOCK_BH |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 118 | |
| 119 | config INLINE_SPIN_LOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 120 | def_bool y |
| 121 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 122 | |
| 123 | config INLINE_SPIN_LOCK_BH |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 124 | def_bool y |
| 125 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_BH |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 126 | |
| 127 | config INLINE_SPIN_LOCK_IRQ |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 128 | def_bool y |
| 129 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_IRQ |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 130 | |
| 131 | config INLINE_SPIN_LOCK_IRQSAVE |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 132 | def_bool y |
| 133 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_IRQSAVE |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 134 | |
| 135 | config INLINE_SPIN_UNLOCK_BH |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 136 | def_bool y |
| 137 | depends on ARCH_INLINE_SPIN_UNLOCK_BH |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 138 | |
| 139 | config INLINE_SPIN_UNLOCK_IRQ |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 140 | def_bool y |
Paul Bolle | 4eedb77 | 2013-05-17 10:51:33 +0200 | [diff] [blame] | 141 | depends on !PREEMPT || ARCH_INLINE_SPIN_UNLOCK_IRQ |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 142 | |
| 143 | config INLINE_SPIN_UNLOCK_IRQRESTORE |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 144 | def_bool y |
| 145 | depends on ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 146 | |
| 147 | |
| 148 | config INLINE_READ_TRYLOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 149 | def_bool y |
| 150 | depends on ARCH_INLINE_READ_TRYLOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 151 | |
| 152 | config INLINE_READ_LOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 153 | def_bool y |
| 154 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 155 | |
| 156 | config INLINE_READ_LOCK_BH |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 157 | def_bool y |
| 158 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_BH |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 159 | |
| 160 | config INLINE_READ_LOCK_IRQ |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 161 | def_bool y |
| 162 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_IRQ |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 163 | |
| 164 | config INLINE_READ_LOCK_IRQSAVE |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 165 | def_bool y |
| 166 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_IRQSAVE |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 167 | |
| 168 | config INLINE_READ_UNLOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 169 | def_bool y |
| 170 | depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 171 | |
| 172 | config INLINE_READ_UNLOCK_BH |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 173 | def_bool y |
| 174 | depends on ARCH_INLINE_READ_UNLOCK_BH |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 175 | |
| 176 | config INLINE_READ_UNLOCK_IRQ |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 177 | def_bool y |
Paul Bolle | 4eedb77 | 2013-05-17 10:51:33 +0200 | [diff] [blame] | 178 | depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK_IRQ |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 179 | |
| 180 | config INLINE_READ_UNLOCK_IRQRESTORE |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 181 | def_bool y |
| 182 | depends on ARCH_INLINE_READ_UNLOCK_IRQRESTORE |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 183 | |
| 184 | |
| 185 | config INLINE_WRITE_TRYLOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 186 | def_bool y |
| 187 | depends on ARCH_INLINE_WRITE_TRYLOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 188 | |
| 189 | config INLINE_WRITE_LOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 190 | def_bool y |
| 191 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 192 | |
| 193 | config INLINE_WRITE_LOCK_BH |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 194 | def_bool y |
| 195 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_BH |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 196 | |
| 197 | config INLINE_WRITE_LOCK_IRQ |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 198 | def_bool y |
| 199 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_IRQ |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 200 | |
| 201 | config INLINE_WRITE_LOCK_IRQSAVE |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 202 | def_bool y |
| 203 | depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_IRQSAVE |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 204 | |
| 205 | config INLINE_WRITE_UNLOCK |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 206 | def_bool y |
| 207 | depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 208 | |
| 209 | config INLINE_WRITE_UNLOCK_BH |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 210 | def_bool y |
| 211 | depends on ARCH_INLINE_WRITE_UNLOCK_BH |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 212 | |
| 213 | config INLINE_WRITE_UNLOCK_IRQ |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 214 | def_bool y |
Paul Bolle | 4eedb77 | 2013-05-17 10:51:33 +0200 | [diff] [blame] | 215 | depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK_IRQ |
Thomas Gleixner | 6beb000 | 2009-11-09 15:21:34 +0000 | [diff] [blame] | 216 | |
| 217 | config INLINE_WRITE_UNLOCK_IRQRESTORE |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 218 | def_bool y |
| 219 | depends on ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE |
| 220 | |
| 221 | endif |
Frederic Weisbecker | c022602 | 2009-12-02 20:49:16 +0100 | [diff] [blame] | 222 | |
Peter Zijlstra | 4badad3 | 2014-06-06 19:53:16 +0200 | [diff] [blame] | 223 | config ARCH_SUPPORTS_ATOMIC_RMW |
| 224 | bool |
| 225 | |
Frederic Weisbecker | c022602 | 2009-12-02 20:49:16 +0100 | [diff] [blame] | 226 | config MUTEX_SPIN_ON_OWNER |
Jan Beulich | 4fe84fb | 2012-09-10 13:01:16 +0100 | [diff] [blame] | 227 | def_bool y |
Peter Zijlstra | a3ea3d9 | 2016-08-23 13:45:15 +0200 | [diff] [blame] | 228 | depends on SMP && ARCH_SUPPORTS_ATOMIC_RMW |
Waiman Long | 70af2f8 | 2014-02-03 13:18:49 +0100 | [diff] [blame] | 229 | |
Davidlohr Bueso | 5db6c6f | 2014-07-11 14:00:06 -0700 | [diff] [blame] | 230 | config RWSEM_SPIN_ON_OWNER |
| 231 | def_bool y |
| 232 | depends on SMP && RWSEM_XCHGADD_ALGORITHM && ARCH_SUPPORTS_ATOMIC_RMW |
| 233 | |
Davidlohr Bueso | d84b672 | 2015-01-06 11:45:07 -0800 | [diff] [blame] | 234 | config LOCK_SPIN_ON_OWNER |
| 235 | def_bool y |
| 236 | depends on MUTEX_SPIN_ON_OWNER || RWSEM_SPIN_ON_OWNER |
| 237 | |
Ingo Molnar | 62c7a1e | 2015-05-11 09:47:23 +0200 | [diff] [blame] | 238 | config ARCH_USE_QUEUED_SPINLOCKS |
Waiman Long | a33fda3 | 2015-04-24 14:56:30 -0400 | [diff] [blame] | 239 | bool |
| 240 | |
Ingo Molnar | 62c7a1e | 2015-05-11 09:47:23 +0200 | [diff] [blame] | 241 | config QUEUED_SPINLOCKS |
| 242 | def_bool y if ARCH_USE_QUEUED_SPINLOCKS |
David Vrabel | e95e6f1 | 2015-04-24 14:56:40 -0400 | [diff] [blame] | 243 | depends on SMP |
Waiman Long | a33fda3 | 2015-04-24 14:56:30 -0400 | [diff] [blame] | 244 | |
Alexei Starovoitov | d83525c | 2019-01-31 15:40:04 -0800 | [diff] [blame] | 245 | config BPF_ARCH_SPINLOCK |
| 246 | bool |
| 247 | |
Waiman Long | c7114b4 | 2015-05-11 13:57:11 -0400 | [diff] [blame] | 248 | config ARCH_USE_QUEUED_RWLOCKS |
Waiman Long | 70af2f8 | 2014-02-03 13:18:49 +0100 | [diff] [blame] | 249 | bool |
| 250 | |
Waiman Long | c7114b4 | 2015-05-11 13:57:11 -0400 | [diff] [blame] | 251 | config QUEUED_RWLOCKS |
| 252 | def_bool y if ARCH_USE_QUEUED_RWLOCKS |
Waiman Long | 70af2f8 | 2014-02-03 13:18:49 +0100 | [diff] [blame] | 253 | depends on SMP |