Skip to content

Commit 1b40cd5

Browse files
Sebastian Andrzej Siewioringomolnar
authored andcommitted
sched/rt, locking: Use CONFIG_PREEMPTION
CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. Both PREEMPT and PREEMPT_RT require the same functionality which today depends on CONFIG_PREEMPT. Switch the Kconfig dependency to use CONFIG_PREEMPTION. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20191015191821.11479-32-bigeasy@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 923717c commit 1b40cd5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎kernel/Kconfig.locks‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ config UNINLINE_SPIN_UNLOCK
101101
# unlock and unlock_irq functions are inlined when:
102102
# - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
103103
# or
104-
# - DEBUG_SPINLOCK=n and PREEMPT=n
104+
# - DEBUG_SPINLOCK=n and PREEMPTION=n
105105
#
106106
# unlock_bh and unlock_irqrestore functions are inlined when:
107107
# - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
@@ -139,7 +139,7 @@ config INLINE_SPIN_UNLOCK_BH
139139

140140
config INLINE_SPIN_UNLOCK_IRQ
141141
def_bool y
142-
depends on !PREEMPT || ARCH_INLINE_SPIN_UNLOCK_IRQ
142+
depends on !PREEMPTION || ARCH_INLINE_SPIN_UNLOCK_IRQ
143143

144144
config INLINE_SPIN_UNLOCK_IRQRESTORE
145145
def_bool y
@@ -168,15 +168,15 @@ config INLINE_READ_LOCK_IRQSAVE
168168

169169
config INLINE_READ_UNLOCK
170170
def_bool y
171-
depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK
171+
depends on !PREEMPTION || ARCH_INLINE_READ_UNLOCK
172172

173173
config INLINE_READ_UNLOCK_BH
174174
def_bool y
175175
depends on ARCH_INLINE_READ_UNLOCK_BH
176176

177177
config INLINE_READ_UNLOCK_IRQ
178178
def_bool y
179-
depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK_IRQ
179+
depends on !PREEMPTION || ARCH_INLINE_READ_UNLOCK_IRQ
180180

181181
config INLINE_READ_UNLOCK_IRQRESTORE
182182
def_bool y
@@ -205,15 +205,15 @@ config INLINE_WRITE_LOCK_IRQSAVE
205205

206206
config INLINE_WRITE_UNLOCK
207207
def_bool y
208-
depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK
208+
depends on !PREEMPTION || ARCH_INLINE_WRITE_UNLOCK
209209

210210
config INLINE_WRITE_UNLOCK_BH
211211
def_bool y
212212
depends on ARCH_INLINE_WRITE_UNLOCK_BH
213213

214214
config INLINE_WRITE_UNLOCK_IRQ
215215
def_bool y
216-
depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK_IRQ
216+
depends on !PREEMPTION || ARCH_INLINE_WRITE_UNLOCK_IRQ
217217

218218
config INLINE_WRITE_UNLOCK_IRQRESTORE
219219
def_bool y

0 commit comments

Comments
 (0)