Changeset 09ab0a9a in mainline for kernel/generic/src/synch/rcu.c
- Timestamp:
- 2018-09-13T12:05:53Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/rcu.c
rb2aaaa0 r09ab0a9a 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 28 30 29 /** @addtogroup sync … … 247 246 } rcu_data_t; 248 247 249 250 248 static rcu_data_t rcu; 251 249 … … 294 292 static void upd_max_cbs_in_slice(size_t arriving_cbs_cnt); 295 293 296 297 298 294 /** Initializes global RCU structures. */ 299 295 void rcu_init(void) … … 394 390 link_initialize(&thread->rcu.preempt_link); 395 391 } 396 397 392 398 393 /** Cleans up global RCU resources and stops dispatching callbacks. … … 715 710 return cur_cbs_empty() && next_cbs_empty() && arriving_cbs_empty(); 716 711 } 717 718 712 719 713 /** Reclaimer thread dispatches locally queued callbacks once a GP ends. */ … … 918 912 return expedite; 919 913 } 920 921 914 922 915 #ifdef RCU_PREEMPT_A … … 1291 1284 } 1292 1285 1293 1294 1286 /** The detector thread detects and notifies reclaimers of grace period ends. */ 1295 1287 static void detector(void *arg) … … 1337 1329 return !interrupted; 1338 1330 } 1339 1340 1331 1341 1332 static void end_cur_gp(void) … … 1608 1599 } 1609 1600 } 1610 1611 1601 1612 1602 #endif /* RCU_PREEMPT_PODZIMEK */
Note:
See TracChangeset
for help on using the changeset viewer.