Changeset dff0a94 in mainline


Ignore:
Timestamp:
2006-12-11T19:41:04Z (18 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

Location:
kernel/test/synch
Files:
2 edited

Legend:

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

    re54fb21 rdff0a94  
    4747static rwlock_t rwlock;
    4848
    49 static SPINLOCK_INITIALIZE(lock);
     49SPINLOCK_INITIALIZE(rw_lock);
    5050
    5151static waitq_t can_start;
     
    6363        uint32_t rc;
    6464
    65         spinlock_lock(&lock);   
     65        spinlock_lock(&rw_lock);       
    6666        rc = seed % max;
    6767        seed = (((seed<<2) ^ (seed>>2)) * 487) + rc;
    68         spinlock_unlock(&lock);
     68        spinlock_unlock(&rw_lock);
    6969        return rc;
    7070}
  • 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.