Changeset dff0a94 in mainline for kernel/test/synch/semaphore2.c


Ignore:
Timestamp:
2006-12-11T19:41:04Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00bb6965
Parents:
e54fb21
Message:

remove static keyword

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/semaphore2.c

    re54fb21 rdff0a94  
    4242static semaphore_t sem;
    4343
    44 static SPINLOCK_INITIALIZE(lock);
     44SPINLOCK_INITIALIZE(sem_lock);
    4545
    4646static waitq_t can_start;
     
    5757        uint32_t rc;
    5858
    59         spinlock_lock(&lock);   
     59        spinlock_lock(&sem_lock);       
    6060        rc = seed % max;
    6161        seed = (((seed<<2) ^ (seed>>2)) * 487) + rc;
    62         spinlock_unlock(&lock);
     62        spinlock_unlock(&sem_lock);
    6363        return rc;
    6464}
Note: See TracChangeset for help on using the changeset viewer.