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>
This commit is contained in:
Frederic Weisbecker
2022-10-13 19:22:44 +02:00
committed by Paul E. McKenney
parent ae3c070616
commit e29a4915db
3 changed files with 34 additions and 31 deletions

View File

@@ -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.
*/