summaryrefslogtreecommitdiff
path: root/include/linux/srcutree.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <frederic@kernel.org>2022-10-13 19:22:44 +0200
committerPaul E. McKenney <paulmck@kernel.org>2022-10-21 10:44:11 -0700
commite29a4915db1480f96e0bc2e928699d086a71f43c (patch)
tree57d8f0516a90adaf9e99ca7a209e6f405bfe0e57 /include/linux/srcutree.h
parentae3c0706160b60ac5e7d36aac428ae6e572dc932 (diff)
downloadlinux-e29a4915db1480f96e0bc2e928699d086a71f43c.tar.gz
srcu: Debug NMI safety even on archs that don't require it
Currently the NMI safety debugging is only performed on architectures that don't support NMI-safe this_cpu_inc(). Reorder the code so that other architectures like x86 also detect bad uses. [ paulmck: Apply kernel test robot, Stephen Rothwell, and Zqiang feedback. ] Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/srcutree.h')
-rw-r--r--include/linux/srcutree.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/srcutree.h b/include/linux/srcutree.h
index 1ef8f2a4884f..c689a81752c9 100644
--- a/include/linux/srcutree.h
+++ b/include/linux/srcutree.h
@@ -43,10 +43,6 @@ struct srcu_data {
struct srcu_struct *ssp;
};
-#define SRCU_NMI_UNKNOWN 0x0
-#define SRCU_NMI_NMI_UNSAFE 0x1
-#define SRCU_NMI_NMI_SAFE 0x2
-
/*
* Node in SRCU combining tree, similar in function to rcu_data.
*/