Changeset 1b20da0 in mainline for kernel/generic/src/synch/condvar.c


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

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

    rdf6ded8 r1b20da0  
    107107
    108108/** Wait for the condition to become true with a locked spinlock.
    109  * 
     109 *
    110110 * The function is not aware of irq_spinlock. Therefore do not even
    111111 * try passing irq_spinlock_t to it. Use _condvar_wait_timeout_irq_spinlock()
     
    124124 * @return See comment for waitq_sleep_timeout().
    125125 */
    126 errno_t _condvar_wait_timeout_spinlock_impl(condvar_t *cv, spinlock_t *lock, 
     126errno_t _condvar_wait_timeout_spinlock_impl(condvar_t *cv, spinlock_t *lock,
    127127        uint32_t usec, int flags)
    128128{
     
    148148
    149149/** Wait for the condition to become true with a locked irq spinlock.
    150  * 
     150 *
    151151 * @param cv            Condition variable.
    152152 * @param lock          Locked irq spinlock.
     
    161161 * @return See comment for waitq_sleep_timeout().
    162162 */
    163 errno_t _condvar_wait_timeout_irq_spinlock(condvar_t *cv, irq_spinlock_t *irq_lock, 
     163errno_t _condvar_wait_timeout_irq_spinlock(condvar_t *cv, irq_spinlock_t *irq_lock,
    164164        uint32_t usec, int flags)
    165165{
     
    171171        irq_lock->guard = false;
    172172       
    173         /* 
    174          * waitq_prepare() restores interrupts to the current state, 
    175          * ie disabled. Therefore, interrupts will remain disabled while 
    176          * it spins waiting for a pending timeout handler to complete. 
     173        /*
     174         * waitq_prepare() restores interrupts to the current state,
     175         * ie disabled. Therefore, interrupts will remain disabled while
     176         * it spins waiting for a pending timeout handler to complete.
    177177         * Although it spins with interrupts disabled there can only
    178178         * be a pending timeout if we failed to cancel an imminent
    179          * timeout (on another cpu) during a wakeup. As a result the 
    180          * timeout handler is guaranteed to run (it is most likely already 
     179         * timeout (on another cpu) during a wakeup. As a result the
     180         * timeout handler is guaranteed to run (it is most likely already
    181181         * running) and there is no danger of a deadlock.
    182182         */
Note: See TracChangeset for help on using the changeset viewer.