summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/rcu.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-10-03 08:28:04 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-11-27 08:40:10 -0800
commit6136d6e48a0138f6be5bb3427dbeb0ba07a546a4 (patch)
treef8b866b269635fb9c37059ab03a860e3b5deec56 /kernel/rcu/rcu.h
parentfd581a91ac16187625ec509414d08d37827472c4 (diff)
downloadlinux-6136d6e48a0138f6be5bb3427dbeb0ba07a546a4.tar.bz2
rcu: Clamp ->dynticks_nmi_nesting at eqs entry/exit
In preparation for merging dyntick-idle irq handling into the NMI algorithm, clamp ->dynticks_nmi_nesting value to allow for interrupts that enter but never leave and vice versa. It is important that the clamping happen outside of the extended quiescent state. Otherwise, there will be short windows where irqs and NMIs fail to convince RCU to start watching. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/rcu.h')
-rw-r--r--kernel/rcu/rcu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
index 59c471de342a..f4a411964c41 100644
--- a/kernel/rcu/rcu.h
+++ b/kernel/rcu/rcu.h
@@ -56,6 +56,8 @@
#define DYNTICK_TASK_EXIT_IDLE (DYNTICK_TASK_NEST_VALUE + \
DYNTICK_TASK_FLAG)
+#define DYNTICK_IRQ_NONIDLE ((INT_MAX / 2) + 1)
+
/*
* Grace-period counter management.