Changeset 132ab5d1 in mainline for kernel/generic/src/synch/rcu.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/rcu.c

    r8bfb163 r132ab5d1  
    960960                                SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE);
    961961                       
    962                         if (ret == ESYNCH_INTERRUPTED) {
     962                        if (ret == EINTR) {
    963963                                spinlock_unlock(&rcu.gp_lock);
    964964                                return false;                   
     
    10181018
    10191019                /* rcu.expedite_now was signaled. */
    1020                 if (ret == ESYNCH_OK_BLOCKED) {
     1020                if (ret == EOK) {
    10211021                        *expedite = true;
    10221022                }
     
    10241024                spinlock_unlock(&rcu.gp_lock);
    10251025
    1026                 return (ret != ESYNCH_INTERRUPTED);
     1026                return (ret != EINTR);
    10271027        }
    10281028}
     
    12711271                int ret = _condvar_wait_timeout_spinlock(&rcu.gp_ended, &rcu.gp_lock,
    12721272                        SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE);
    1273                 interrupted = (ret == ESYNCH_INTERRUPTED);
     1273                interrupted = (ret == EINTR);
    12741274        }
    12751275       
     
    13321332                        &rcu.gp_lock, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE);
    13331333               
    1334                 interrupted = (ret == ESYNCH_INTERRUPTED);
     1334                interrupted = (ret == EINTR);
    13351335        }
    13361336       
     
    14061406        spinlock_unlock(&rcu.gp_lock);
    14071407       
    1408         return (ret != ESYNCH_INTERRUPTED);
     1408        return (ret != EINTR);
    14091409}
    14101410
Note: See TracChangeset for help on using the changeset viewer.