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


Ignore:
Timestamp:
2018-11-01T14:30:03Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1da1ff2
Parents:
bab75df6
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-01 14:30:03)
git-committer:
GitHub <noreply@…> (2018-11-01 14:30:03)
Message:

Rename THE/the_t to CURRENT/current_t (#50)

Because the word "THE" occurs several times in every license
header, searching for occurrences of "THE" macro is more difficult
than necessary.

While I appreciate the wit of it, using a non-conflicting word
for it is more practical.

File:
1 edited

Legend:

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

    rbab75df6 ra6e55886  
    132132static inline void rcu_read_lock(void)
    133133{
    134         THE->rcu_nesting += RCU_CNT_INC;
     134        CURRENT->rcu_nesting += RCU_CNT_INC;
    135135        compiler_barrier();
    136136}
     
    140140{
    141141        compiler_barrier();
    142         THE->rcu_nesting -= RCU_CNT_INC;
    143 
    144         if (RCU_WAS_PREEMPTED == THE->rcu_nesting) {
     142        CURRENT->rcu_nesting -= RCU_CNT_INC;
     143
     144        if (RCU_WAS_PREEMPTED == CURRENT->rcu_nesting) {
    145145                _rcu_preempted_unlock();
    146146        }
Note: See TracChangeset for help on using the changeset viewer.