rcu: Make rcu_idle_enter() rely on callers disabling irqs

All callers to rcu_idle_enter() have irqs disabled, so there is no
point in rcu_idle_enter disabling them again.  This commit therefore
replaces the irq disabling with a RCU_LOCKDEP_WARN().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
Peter Zijlstra (Intel) 2017-07-12 07:59:54 -07:00 committed by Paul E. McKenney
parent 2dee9404fa
commit 3a60799269

View File

@ -843,11 +843,8 @@ static void rcu_eqs_enter(bool user)
*/ */
void rcu_idle_enter(void) void rcu_idle_enter(void)
{ {
unsigned long flags; RCU_LOCKDEP_WARN(!irqs_disabled(), "rcu_idle_enter() invoked with irqs enabled!!!");
local_irq_save(flags);
rcu_eqs_enter(false); rcu_eqs_enter(false);
local_irq_restore(flags);
} }
EXPORT_SYMBOL_GPL(rcu_idle_enter); EXPORT_SYMBOL_GPL(rcu_idle_enter);