diff options
Diffstat (limited to 'kernel/rcu/tree_plugin.h')
-rw-r--r-- | kernel/rcu/tree_plugin.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index c1d7f27bd38f..09547143628a 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -2761,9 +2761,10 @@ static int full_sysidle_state; /* Current system-idle state. */ | |||
2761 | * to detect full-system idle states, not RCU quiescent states and grace | 2761 | * to detect full-system idle states, not RCU quiescent states and grace |
2762 | * periods. The caller must have disabled interrupts. | 2762 | * periods. The caller must have disabled interrupts. |
2763 | */ | 2763 | */ |
2764 | static void rcu_sysidle_enter(struct rcu_dynticks *rdtp, int irq) | 2764 | static void rcu_sysidle_enter(int irq) |
2765 | { | 2765 | { |
2766 | unsigned long j; | 2766 | unsigned long j; |
2767 | struct rcu_dynticks *rdtp = this_cpu_ptr(&rcu_dynticks); | ||
2767 | 2768 | ||
2768 | /* If there are no nohz_full= CPUs, no need to track this. */ | 2769 | /* If there are no nohz_full= CPUs, no need to track this. */ |
2769 | if (!tick_nohz_full_enabled()) | 2770 | if (!tick_nohz_full_enabled()) |
@@ -2832,8 +2833,10 @@ void rcu_sysidle_force_exit(void) | |||
2832 | * usermode execution does -not- count as idle here! The caller must | 2833 | * usermode execution does -not- count as idle here! The caller must |
2833 | * have disabled interrupts. | 2834 | * have disabled interrupts. |
2834 | */ | 2835 | */ |
2835 | static void rcu_sysidle_exit(struct rcu_dynticks *rdtp, int irq) | 2836 | static void rcu_sysidle_exit(int irq) |
2836 | { | 2837 | { |
2838 | struct rcu_dynticks *rdtp = this_cpu_ptr(&rcu_dynticks); | ||
2839 | |||
2837 | /* If there are no nohz_full= CPUs, no need to track this. */ | 2840 | /* If there are no nohz_full= CPUs, no need to track this. */ |
2838 | if (!tick_nohz_full_enabled()) | 2841 | if (!tick_nohz_full_enabled()) |
2839 | return; | 2842 | return; |
@@ -3127,11 +3130,11 @@ static void rcu_sysidle_init_percpu_data(struct rcu_dynticks *rdtp) | |||
3127 | 3130 | ||
3128 | #else /* #ifdef CONFIG_NO_HZ_FULL_SYSIDLE */ | 3131 | #else /* #ifdef CONFIG_NO_HZ_FULL_SYSIDLE */ |
3129 | 3132 | ||
3130 | static void rcu_sysidle_enter(struct rcu_dynticks *rdtp, int irq) | 3133 | static void rcu_sysidle_enter(int irq) |
3131 | { | 3134 | { |
3132 | } | 3135 | } |
3133 | 3136 | ||
3134 | static void rcu_sysidle_exit(struct rcu_dynticks *rdtp, int irq) | 3137 | static void rcu_sysidle_exit(int irq) |
3135 | { | 3138 | { |
3136 | } | 3139 | } |
3137 | 3140 | ||