Searched refs:gp_state (Results 1 – 5 of 5) sorted by relevance
| /linux/kernel/rcu/ |
| H A D | sync.c | 62 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_func() 63 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_func() 70 WRITE_ONCE(rsp->gp_state, GP_PASSED); in rcu_sync_func() 72 } else if (rsp->gp_state == GP_REPLAY) { in rcu_sync_func() 77 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_func() 85 WRITE_ONCE(rsp->gp_state, GP_IDLE); in rcu_sync_func() 107 int gp_state; in rcu_sync_enter() local 110 gp_state = rsp->gp_state; in rcu_sync_enter() 111 if (gp_state == GP_IDLE) { in rcu_sync_enter() 112 WRITE_ONCE(rsp->gp_state, GP_ENTER); in rcu_sync_enter() [all …]
|
| H A D | rcutorture.c | 419 bool (*check_boost_failed)(unsigned long gp_state, int *cpup); 1240 static bool rcu_torture_boost_failed(unsigned long gp_state, unsigned long *start) in rcu_torture_boost_failed() argument 1254 if (cur_ops->poll_gp_state(gp_state)) in rcu_torture_boost_failed() 1256 if (cur_ops->check_boost_failed && !cur_ops->check_boost_failed(gp_state, &cpu)) { in rcu_torture_boost_failed() 1273 current->rt_priority, gp_state, end - *start); in rcu_torture_boost_failed() 1276 gp_done = cur_ops->poll_gp_state(gp_state); in rcu_torture_boost_failed() 1277 pr_info("Boost inversion: GP %lu %s.\n", gp_state, in rcu_torture_boost_failed() 1283 } else if (cur_ops->check_boost_failed && !cur_ops->check_boost_failed(gp_state, NULL)) { in rcu_torture_boost_failed() 1293 unsigned long gp_state; in rcu_torture_boost() local 1335 if (gp_initiated && !failed && !cur_ops->poll_gp_state(gp_state)) in rcu_torture_boost() [all …]
|
| H A D | tree.c | 94 .gp_state = RCU_GP_IDLE, 1884 WRITE_ONCE(rcu_state.gp_state, RCU_GP_ONOFF); in rcu_gp_init() 1952 WRITE_ONCE(rcu_state.gp_state, RCU_GP_INIT); in rcu_gp_init() 2082 WRITE_ONCE(rcu_state.gp_state, RCU_GP_WAIT_FQS); in rcu_gp_fqs_loop() 2086 WRITE_ONCE(rcu_state.gp_state, RCU_GP_DOING_FQS); in rcu_gp_fqs_loop() 2211 WRITE_ONCE(rcu_state.gp_state, RCU_GP_IDLE); in rcu_gp_cleanup() 2268 WRITE_ONCE(rcu_state.gp_state, RCU_GP_WAIT_GPS); in rcu_gp_kthread() 2273 WRITE_ONCE(rcu_state.gp_state, RCU_GP_DONE_GPS); in rcu_gp_kthread() 2288 WRITE_ONCE(rcu_state.gp_state, RCU_GP_CLEANUP); in rcu_gp_kthread() 2290 WRITE_ONCE(rcu_state.gp_state, RCU_GP_CLEANED); in rcu_gp_kthread() [all …]
|
| H A D | tree.h | 369 short gp_state; /* GP kthread sleep state. */ member
|
| /linux/include/linux/ |
| H A D | rcu_sync.h | 18 int gp_state; member 36 return !READ_ONCE(rsp->gp_state); /* GP_IDLE */ in rcu_sync_is_idle() 45 .gp_state = 0, \
|