diff options
Diffstat (limited to 'kernel/rcu/update.c')
| -rw-r--r-- | kernel/rcu/update.c | 18 | 
1 files changed, 7 insertions, 11 deletions
| diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 738842c4886b..f5e6a2f95a2a 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -224,7 +224,7 @@ void rcu_test_sync_prims(void)  	synchronize_rcu_expedited();  } -#if !defined(CONFIG_TINY_RCU) || defined(CONFIG_SRCU) +#if !defined(CONFIG_TINY_RCU)  /*   * Switch to run-time mode once RCU has fully initialized. @@ -239,7 +239,7 @@ static int __init rcu_set_runtime_mode(void)  }  core_initcall(rcu_set_runtime_mode); -#endif /* #if !defined(CONFIG_TINY_RCU) || defined(CONFIG_SRCU) */ +#endif /* #if !defined(CONFIG_TINY_RCU) */  #ifdef CONFIG_DEBUG_LOCK_ALLOC  static struct lock_class_key rcu_lock_key; @@ -559,10 +559,8 @@ static void early_boot_test_call_rcu(void)  	struct early_boot_kfree_rcu *rhp;  	call_rcu(&head, test_callback); -	if (IS_ENABLED(CONFIG_SRCU)) { -		early_srcu_cookie = start_poll_synchronize_srcu(&early_srcu); -		call_srcu(&early_srcu, &shead, test_callback); -	} +	early_srcu_cookie = start_poll_synchronize_srcu(&early_srcu); +	call_srcu(&early_srcu, &shead, test_callback);  	rhp = kmalloc(sizeof(*rhp), GFP_KERNEL);  	if (!WARN_ON_ONCE(!rhp))  		kfree_rcu(rhp, rh); @@ -585,11 +583,9 @@ static int rcu_verify_early_boot_tests(void)  	if (rcu_self_test) {  		early_boot_test_counter++;  		rcu_barrier(); -		if (IS_ENABLED(CONFIG_SRCU)) { -			early_boot_test_counter++; -			srcu_barrier(&early_srcu); -			WARN_ON_ONCE(!poll_state_synchronize_srcu(&early_srcu, early_srcu_cookie)); -		} +		early_boot_test_counter++; +		srcu_barrier(&early_srcu); +		WARN_ON_ONCE(!poll_state_synchronize_srcu(&early_srcu, early_srcu_cookie));  	}  	if (rcu_self_test_counter != early_boot_test_counter) {  		WARN_ON(1); |