--- b/arch/x86/kernel/nmi.c | 3 +++ b/include/linux/rcupdate.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff -puN arch/x86/kernel/nmi.c~dirty-rcu-hack arch/x86/kernel/nmi.c --- a/arch/x86/kernel/nmi.c~dirty-rcu-hack 2014-06-13 16:00:30.257183228 -0700 +++ b/arch/x86/kernel/nmi.c 2014-06-13 16:00:30.261183407 -0700 @@ -88,10 +88,13 @@ __setup("unknown_nmi_panic", setup_unkno static u64 nmi_longest_ns = 1 * NSEC_PER_MSEC; +u64 RCU_COND_RESCHED_LIM = 256; static int __init nmi_warning_debugfs(void) { debugfs_create_u64("nmi_longest_ns", 0644, arch_debugfs_dir, &nmi_longest_ns); + debugfs_create_u64("RCU_COND_RESCHED_LIM", 0644, + arch_debugfs_dir, &RCU_COND_RESCHED_LIM); return 0; } fs_initcall(nmi_warning_debugfs); diff -puN include/linux/rcupdate.h~dirty-rcu-hack include/linux/rcupdate.h --- a/include/linux/rcupdate.h~dirty-rcu-hack 2014-06-13 16:00:35.578421426 -0700 +++ b/include/linux/rcupdate.h 2014-06-13 16:00:49.863060683 -0700 @@ -303,7 +303,7 @@ bool __rcu_is_watching(void); * Hooks for cond_resched() and friends to avoid RCU CPU stall warnings. */ -#define RCU_COND_RESCHED_LIM 256 /* ms vs. 100s of ms. */ +extern u64 RCU_COND_RESCHED_LIM /* ms vs. 100s of ms. */ DECLARE_PER_CPU(int, rcu_cond_resched_count); void rcu_resched(void); _