Kconfig.locks 4.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
#
# The ARCH_INLINE foo is necessary because select ignores "depends on"
#
config ARCH_INLINE_SPIN_TRYLOCK
	bool

config ARCH_INLINE_SPIN_TRYLOCK_BH
	bool

config ARCH_INLINE_SPIN_LOCK
	bool

config ARCH_INLINE_SPIN_LOCK_BH
	bool

config ARCH_INLINE_SPIN_LOCK_IRQ
	bool

config ARCH_INLINE_SPIN_LOCK_IRQSAVE
	bool

config ARCH_INLINE_SPIN_UNLOCK
	bool

config ARCH_INLINE_SPIN_UNLOCK_BH
	bool

config ARCH_INLINE_SPIN_UNLOCK_IRQ
	bool

config ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
	bool


config ARCH_INLINE_READ_TRYLOCK
	bool

config ARCH_INLINE_READ_LOCK
	bool

config ARCH_INLINE_READ_LOCK_BH
	bool

config ARCH_INLINE_READ_LOCK_IRQ
	bool

config ARCH_INLINE_READ_LOCK_IRQSAVE
	bool

config ARCH_INLINE_READ_UNLOCK
	bool

config ARCH_INLINE_READ_UNLOCK_BH
	bool

config ARCH_INLINE_READ_UNLOCK_IRQ
	bool

config ARCH_INLINE_READ_UNLOCK_IRQRESTORE
	bool


config ARCH_INLINE_WRITE_TRYLOCK
	bool

config ARCH_INLINE_WRITE_LOCK
	bool

config ARCH_INLINE_WRITE_LOCK_BH
	bool

config ARCH_INLINE_WRITE_LOCK_IRQ
	bool

config ARCH_INLINE_WRITE_LOCK_IRQSAVE
	bool

config ARCH_INLINE_WRITE_UNLOCK
	bool

config ARCH_INLINE_WRITE_UNLOCK_BH
	bool

config ARCH_INLINE_WRITE_UNLOCK_IRQ
	bool

config ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
	bool

90 91 92
config UNINLINE_SPIN_UNLOCK
	bool

93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
#
# lock_* functions are inlined when:
#   - DEBUG_SPINLOCK=n and GENERIC_LOCKBREAK=n and ARCH_INLINE_*LOCK=y
#
# trylock_* functions are inlined when:
#   - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
#
# unlock and unlock_irq functions are inlined when:
#   - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
#  or
#   - DEBUG_SPINLOCK=n and PREEMPT=n
#
# unlock_bh and unlock_irqrestore functions are inlined when:
#   - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
#

109 110
if !DEBUG_SPINLOCK

111
config INLINE_SPIN_TRYLOCK
112 113
	def_bool y
	depends on ARCH_INLINE_SPIN_TRYLOCK
114 115

config INLINE_SPIN_TRYLOCK_BH
116 117
	def_bool y
	depends on ARCH_INLINE_SPIN_TRYLOCK_BH
118 119

config INLINE_SPIN_LOCK
120 121
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK
122 123

config INLINE_SPIN_LOCK_BH
124 125
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_BH
126 127

config INLINE_SPIN_LOCK_IRQ
128 129
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_IRQ
130 131

config INLINE_SPIN_LOCK_IRQSAVE
132 133
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_IRQSAVE
134 135

config INLINE_SPIN_UNLOCK_BH
136 137
	def_bool y
	depends on ARCH_INLINE_SPIN_UNLOCK_BH
138 139

config INLINE_SPIN_UNLOCK_IRQ
140
	def_bool y
141
	depends on !PREEMPT || ARCH_INLINE_SPIN_UNLOCK_IRQ
142 143

config INLINE_SPIN_UNLOCK_IRQRESTORE
144 145
	def_bool y
	depends on ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
146 147 148


config INLINE_READ_TRYLOCK
149 150
	def_bool y
	depends on ARCH_INLINE_READ_TRYLOCK
151 152

config INLINE_READ_LOCK
153 154
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK
155 156

config INLINE_READ_LOCK_BH
157 158
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_BH
159 160

config INLINE_READ_LOCK_IRQ
161 162
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_IRQ
163 164

config INLINE_READ_LOCK_IRQSAVE
165 166
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_IRQSAVE
167 168

config INLINE_READ_UNLOCK
169 170
	def_bool y
	depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK
171 172

config INLINE_READ_UNLOCK_BH
173 174
	def_bool y
	depends on ARCH_INLINE_READ_UNLOCK_BH
175 176

config INLINE_READ_UNLOCK_IRQ
177
	def_bool y
178
	depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK_IRQ
179 180

config INLINE_READ_UNLOCK_IRQRESTORE
181 182
	def_bool y
	depends on ARCH_INLINE_READ_UNLOCK_IRQRESTORE
183 184 185


config INLINE_WRITE_TRYLOCK
186 187
	def_bool y
	depends on ARCH_INLINE_WRITE_TRYLOCK
188 189

config INLINE_WRITE_LOCK
190 191
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK
192 193

config INLINE_WRITE_LOCK_BH
194 195
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_BH
196 197

config INLINE_WRITE_LOCK_IRQ
198 199
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_IRQ
200 201

config INLINE_WRITE_LOCK_IRQSAVE
202 203
	def_bool y
	depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_IRQSAVE
204 205

config INLINE_WRITE_UNLOCK
206 207
	def_bool y
	depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK
208 209

config INLINE_WRITE_UNLOCK_BH
210 211
	def_bool y
	depends on ARCH_INLINE_WRITE_UNLOCK_BH
212 213

config INLINE_WRITE_UNLOCK_IRQ
214
	def_bool y
215
	depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK_IRQ
216 217

config INLINE_WRITE_UNLOCK_IRQRESTORE
218 219 220 221
	def_bool y
	depends on ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE

endif
222 223

config MUTEX_SPIN_ON_OWNER
224 225
	def_bool y
	depends on SMP && !DEBUG_MUTEXES