X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Flockdep.c;h=4e8e14c34e428d6a75580ec862c4975b0425dfc0;hb=4a2f8a5c16b0828bf3ec89b4ce290bda5a0547de;hp=e16c45b9ee77054f80becd37a51da00776f796c1;hpb=861a4ce3cae570af70ce5b0b43c202c6284918ca;p=karo-tx-linux.git diff --git a/kernel/lockdep.c b/kernel/lockdep.c index e16c45b9ee77..4e8e14c34e42 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c @@ -4224,7 +4224,7 @@ void lockdep_rcu_suspicious(const char *file, const int line, const char *s) printk("\n%srcu_scheduler_active = %d, debug_locks = %d\n", !rcu_lockdep_current_cpu_online() ? "RCU used illegally from offline CPU!\n" - : rcu_is_cpu_idle() + : !rcu_is_watching() ? "RCU used illegally from idle CPU!\n" : "", rcu_scheduler_active, debug_locks); @@ -4247,7 +4247,7 @@ void lockdep_rcu_suspicious(const char *file, const int line, const char *s) * So complain bitterly if someone does call rcu_read_lock(), * rcu_read_lock_bh() and so on from extended quiescent states. */ - if (rcu_is_cpu_idle()) + if (!rcu_is_watching()) printk("RCU used illegally from extended quiescent state!\n"); lockdep_print_held_locks(curr);