diff options
Diffstat (limited to 'kernel/rcu/tree.h')
| -rw-r--r-- | kernel/rcu/tree.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 3413f3c5c8b2..d44856b6170a 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h | |||
| @@ -68,6 +68,9 @@ | |||
| 68 | # define NUM_RCU_LVL_2 0 | 68 | # define NUM_RCU_LVL_2 0 |
| 69 | # define NUM_RCU_LVL_3 0 | 69 | # define NUM_RCU_LVL_3 0 |
| 70 | # define NUM_RCU_LVL_4 0 | 70 | # define NUM_RCU_LVL_4 0 |
| 71 | # define NUM_RCU_LVL_INIT { NUM_RCU_LVL_0 } | ||
| 72 | # define RCU_NODE_NAME_INIT { "rcu_node_0" } | ||
| 73 | # define RCU_FQS_NAME_INIT { "rcu_node_fqs_0" } | ||
| 71 | #elif NR_CPUS <= RCU_FANOUT_2 | 74 | #elif NR_CPUS <= RCU_FANOUT_2 |
| 72 | # define RCU_NUM_LVLS 2 | 75 | # define RCU_NUM_LVLS 2 |
| 73 | # define NUM_RCU_LVL_0 1 | 76 | # define NUM_RCU_LVL_0 1 |
| @@ -75,6 +78,9 @@ | |||
| 75 | # define NUM_RCU_LVL_2 (NR_CPUS) | 78 | # define NUM_RCU_LVL_2 (NR_CPUS) |
| 76 | # define NUM_RCU_LVL_3 0 | 79 | # define NUM_RCU_LVL_3 0 |
| 77 | # define NUM_RCU_LVL_4 0 | 80 | # define NUM_RCU_LVL_4 0 |
| 81 | # define NUM_RCU_LVL_INIT { NUM_RCU_LVL_0, NUM_RCU_LVL_1 } | ||
| 82 | # define RCU_NODE_NAME_INIT { "rcu_node_0", "rcu_node_1" } | ||
| 83 | # define RCU_FQS_NAME_INIT { "rcu_node_fqs_0", "rcu_node_fqs_1" } | ||
| 78 | #elif NR_CPUS <= RCU_FANOUT_3 | 84 | #elif NR_CPUS <= RCU_FANOUT_3 |
| 79 | # define RCU_NUM_LVLS 3 | 85 | # define RCU_NUM_LVLS 3 |
| 80 | # define NUM_RCU_LVL_0 1 | 86 | # define NUM_RCU_LVL_0 1 |
| @@ -82,6 +88,9 @@ | |||
| 82 | # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) | 88 | # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) |
| 83 | # define NUM_RCU_LVL_3 (NR_CPUS) | 89 | # define NUM_RCU_LVL_3 (NR_CPUS) |
| 84 | # define NUM_RCU_LVL_4 0 | 90 | # define NUM_RCU_LVL_4 0 |
| 91 | # define NUM_RCU_LVL_INIT { NUM_RCU_LVL_0, NUM_RCU_LVL_1, NUM_RCU_LVL_2 } | ||
| 92 | # define RCU_NODE_NAME_INIT { "rcu_node_0", "rcu_node_1", "rcu_node_2" } | ||
| 93 | # define RCU_FQS_NAME_INIT { "rcu_node_fqs_0", "rcu_node_fqs_1", "rcu_node_fqs_2" } | ||
| 85 | #elif NR_CPUS <= RCU_FANOUT_4 | 94 | #elif NR_CPUS <= RCU_FANOUT_4 |
| 86 | # define RCU_NUM_LVLS 4 | 95 | # define RCU_NUM_LVLS 4 |
| 87 | # define NUM_RCU_LVL_0 1 | 96 | # define NUM_RCU_LVL_0 1 |
| @@ -89,6 +98,9 @@ | |||
| 89 | # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) | 98 | # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) |
| 90 | # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) | 99 | # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) |
| 91 | # define NUM_RCU_LVL_4 (NR_CPUS) | 100 | # define NUM_RCU_LVL_4 (NR_CPUS) |
| 101 | # define NUM_RCU_LVL_INIT { NUM_RCU_LVL_0, NUM_RCU_LVL_1, NUM_RCU_LVL_2, NUM_RCU_LVL_3 } | ||
| 102 | # define RCU_NODE_NAME_INIT { "rcu_node_0", "rcu_node_1", "rcu_node_2", "rcu_node_3" } | ||
| 103 | # define RCU_FQS_NAME_INIT { "rcu_node_fqs_0", "rcu_node_fqs_1", "rcu_node_fqs_2", "rcu_node_fqs_3" } | ||
| 92 | #else | 104 | #else |
| 93 | # error "CONFIG_RCU_FANOUT insufficient for NR_CPUS" | 105 | # error "CONFIG_RCU_FANOUT insufficient for NR_CPUS" |
| 94 | #endif /* #if (NR_CPUS) <= RCU_FANOUT_1 */ | 106 | #endif /* #if (NR_CPUS) <= RCU_FANOUT_1 */ |
