diff options
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r-- | kernel/rcu/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index f139b8202d5d..a222afb6d74d 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -1442,7 +1442,7 @@ static void print_cpu_stall(void) | |||
1442 | resched_cpu(smp_processor_id()); | 1442 | resched_cpu(smp_processor_id()); |
1443 | } | 1443 | } |
1444 | 1444 | ||
1445 | static void check_cpu_stall(struct rcu_state *rsp, struct rcu_data *rdp) | 1445 | static void check_cpu_stall(struct rcu_data *rdp) |
1446 | { | 1446 | { |
1447 | unsigned long gs1; | 1447 | unsigned long gs1; |
1448 | unsigned long gs2; | 1448 | unsigned long gs2; |
@@ -1451,6 +1451,7 @@ static void check_cpu_stall(struct rcu_state *rsp, struct rcu_data *rdp) | |||
1451 | unsigned long jn; | 1451 | unsigned long jn; |
1452 | unsigned long js; | 1452 | unsigned long js; |
1453 | struct rcu_node *rnp; | 1453 | struct rcu_node *rnp; |
1454 | struct rcu_state *rsp = &rcu_state; | ||
1454 | 1455 | ||
1455 | if ((rcu_cpu_stall_suppress && !rcu_kick_kthreads) || | 1456 | if ((rcu_cpu_stall_suppress && !rcu_kick_kthreads) || |
1456 | !rcu_gp_in_progress()) | 1457 | !rcu_gp_in_progress()) |
@@ -3094,7 +3095,7 @@ static int __rcu_pending(struct rcu_state *rsp, struct rcu_data *rdp) | |||
3094 | struct rcu_node *rnp = rdp->mynode; | 3095 | struct rcu_node *rnp = rdp->mynode; |
3095 | 3096 | ||
3096 | /* Check for CPU stalls, if enabled. */ | 3097 | /* Check for CPU stalls, if enabled. */ |
3097 | check_cpu_stall(rsp, rdp); | 3098 | check_cpu_stall(rdp); |
3098 | 3099 | ||
3099 | /* Is this CPU a NO_HZ_FULL CPU that should ignore RCU? */ | 3100 | /* Is this CPU a NO_HZ_FULL CPU that should ignore RCU? */ |
3100 | if (rcu_nohz_full_cpu(rsp)) | 3101 | if (rcu_nohz_full_cpu(rsp)) |