diff options
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 63bb7714fdeb..561410f70d4a 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -417,6 +417,16 @@ static void rcu_print_task_stall(struct rcu_node *rnp) | |||
417 | } | 417 | } |
418 | } | 418 | } |
419 | 419 | ||
420 | /* | ||
421 | * Suppress preemptible RCU's CPU stall warnings by pushing the | ||
422 | * time of the next stall-warning message comfortably far into the | ||
423 | * future. | ||
424 | */ | ||
425 | static void rcu_preempt_stall_reset(void) | ||
426 | { | ||
427 | rcu_preempt_state.jiffies_stall = jiffies + ULONG_MAX / 2; | ||
428 | } | ||
429 | |||
420 | #endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */ | 430 | #endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */ |
421 | 431 | ||
422 | /* | 432 | /* |
@@ -867,6 +877,14 @@ static void rcu_print_task_stall(struct rcu_node *rnp) | |||
867 | { | 877 | { |
868 | } | 878 | } |
869 | 879 | ||
880 | /* | ||
881 | * Because preemptible RCU does not exist, there is no need to suppress | ||
882 | * its CPU stall warnings. | ||
883 | */ | ||
884 | static void rcu_preempt_stall_reset(void) | ||
885 | { | ||
886 | } | ||
887 | |||
870 | #endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */ | 888 | #endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */ |
871 | 889 | ||
872 | /* | 890 | /* |