[<prev] [next>] [day] [month] [year] [list]
Message-ID: <160226288912.7002.16299812541183928186.tip-bot2@tip-bot2>
Date: Fri, 09 Oct 2020 17:01:29 -0000
From: "tip-bot2 for Thomas Gleixner" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Thomas Gleixner <tglx@...utronix.de>,
"Paul E. McKenney" <paulmck@...nel.org>, x86 <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [tip: core/rcu] lib/debug: Remove pointless ARCH_NO_PREEMPT dependencies
The following commit has been merged into the core/rcu branch of tip:
Commit-ID: 45015f8840baa8a99f5161d42fc1ca070d534365
Gitweb: https://git.kernel.org/tip/45015f8840baa8a99f5161d42fc1ca070d534365
Author: Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Mon, 14 Sep 2020 20:35:55 +02:00
Committer: Paul E. McKenney <paulmck@...nel.org>
CommitterDate: Fri, 25 Sep 2020 11:24:14 -07:00
lib/debug: Remove pointless ARCH_NO_PREEMPT dependencies
ARCH_NO_PREEMPT disables the selection of CONFIG_PREEMPT_VOLUNTARY and
CONFIG_PREEMPT, but architectures which set this config option still
support preempt count for hard and softirq accounting.
There is absolutely no reason to prevent lockdep from using the preempt
counter nor is there a reason to prevent the enablement of
CONFIG_DEBUG_ATOMIC_SLEEP on such architectures.
Remove the dependencies.
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Signed-off-by: Paul E. McKenney <paulmck@...nel.org>
---
lib/Kconfig.debug | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index e068c3c..f50fbcf 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1161,7 +1161,7 @@ config PROVE_LOCKING
select DEBUG_RWSEMS
select DEBUG_WW_MUTEX_SLOWPATH
select DEBUG_LOCK_ALLOC
- select PREEMPT_COUNT if !ARCH_NO_PREEMPT
+ select PREEMPT_COUNT
select TRACE_IRQFLAGS
default n
help
@@ -1323,7 +1323,6 @@ config DEBUG_ATOMIC_SLEEP
bool "Sleep inside atomic section checking"
select PREEMPT_COUNT
depends on DEBUG_KERNEL
- depends on !ARCH_NO_PREEMPT
help
If you say Y here, various routines which may sleep will become very
noisy if they are called inside atomic sections: when a spinlock is
Powered by blists - more mailing lists