aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index af7dfa74e6bb..7be88a7be047 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -9682,7 +9682,7 @@ void __init sched_init(void)
9682#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP 9682#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
9683static inline int preempt_count_equals(int preempt_offset) 9683static inline int preempt_count_equals(int preempt_offset)
9684{ 9684{
9685 int nested = preempt_count() & ~PREEMPT_ACTIVE; 9685 int nested = (preempt_count() & ~PREEMPT_ACTIVE) + rcu_preempt_depth();
9686 9686
9687 return (nested == PREEMPT_INATOMIC_BASE + preempt_offset); 9687 return (nested == PREEMPT_INATOMIC_BASE + preempt_offset);
9688} 9688}