Changeset 5b03a72 in mainline for kernel/generic/include
- Timestamp:
- 2012-07-29T17:53:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f0fcb04
- Parents:
- 8e3ed06
- Location:
- kernel/generic/include/synch
- Files:
-
- 2 edited
-
rcu.h (modified) (2 diffs)
-
rcu_types.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/rcu.h
r8e3ed06 r5b03a72 181 181 182 182 /* Record a QS if not in a reader critical section. */ 183 if (0 == *CPU->rcu.pnesting_cnt)183 if (0 == CPU->rcu.nesting_cnt) 184 184 _rcu_record_qs(); 185 185 186 ++ (*CPU->rcu.pnesting_cnt);186 ++CPU->rcu.nesting_cnt; 187 187 188 188 preemption_enable(); … … 195 195 preemption_disable(); 196 196 197 if (0 == -- (*CPU->rcu.pnesting_cnt)) {197 if (0 == --CPU->rcu.nesting_cnt) { 198 198 _rcu_record_qs(); 199 199 -
kernel/generic/include/synch/rcu_types.h
r8e3ed06 r5b03a72 61 61 rcu_gp_t last_seen_gp; 62 62 63 /** Pointer to the currently used nesting count (THREAD's or CPU's). */ 64 size_t *pnesting_cnt; 65 /** Temporary nesting count if THREAD is NULL, eg in scheduler(). */ 66 size_t tmp_nesting_cnt; 63 /** The number of times an RCU reader section is nested on this cpu. 64 * 65 * If positive, it is definitely executing reader code. If zero, 66 * the thread might already be executing reader code thanks to 67 * cpu instruction reordering. 68 */ 69 size_t nesting_cnt; 67 70 68 71 /** Callbacks to invoke once the current grace period ends, ie cur_cbs_gp. … … 128 131 /** RCU related per-thread data. */ 129 132 typedef struct rcu_thread_data { 130 /** The number of times an RCU reader section is nested. 131 * 132 * If positive, it is definitely executing reader code. If zero, 133 * the thread might already be executing reader code thanks to 134 * cpu instruction reordering. 133 /** 134 * Nesting count of the thread's RCU read sections when the thread 135 * is not running. 135 136 */ 136 137 size_t nesting_cnt;
Note:
See TracChangeset
for help on using the changeset viewer.
