Changeset 5b03a72 in mainline for kernel/generic/include/synch/rcu.h


Ignore:
Timestamp:
2012-07-29T17:53:48Z (12 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f0fcb04
Parents:
8e3ed06
Message:

rcu: Switched from using THREAD→nesting_cnt to CPU→nesting_cnt as the main nesting count variable. RCU no longer has to mess with pointers to the corrent nesting_cnt (and gets rid of one level of indirection when accessing the nesting count in reader sections).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/synch/rcu.h

    r8e3ed06 r5b03a72  
    181181
    182182        /* Record a QS if not in a reader critical section. */
    183         if (0 == *CPU->rcu.pnesting_cnt)
     183        if (0 == CPU->rcu.nesting_cnt)
    184184                _rcu_record_qs();
    185185
    186         ++(*CPU->rcu.pnesting_cnt);
     186        ++CPU->rcu.nesting_cnt;
    187187
    188188        preemption_enable();
     
    195195        preemption_disable();
    196196       
    197         if (0 == --(*CPU->rcu.pnesting_cnt)) {
     197        if (0 == --CPU->rcu.nesting_cnt) {
    198198                _rcu_record_qs();
    199199               
Note: See TracChangeset for help on using the changeset viewer.