Changeset 1dde3b61 in mainline


Ignore:
Timestamp:
2005-09-01T11:30:46Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
db3341e
Parents:
e3b9572
Message:

Revert the change in rwlock #4 test that added cpu_priority_high() and cpu_priority_restore() to random().
It is no longer necessary because spinlock disables preemption at least.

File:
1 edited

Legend:

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

    re3b9572 r1dde3b61  
    6363        pri_t pri;
    6464
    65         pri = cpu_priority_high();
    6665        spinlock_lock(&lock);   
    6766        rc = seed % max;
    6867        seed = (((seed<<2) ^ (seed>>2)) * 487) + rc;
    6968        spinlock_unlock(&lock);
    70         cpu_priority_restore(pri);
    7169        return rc;
    7270}
Note: See TracChangeset for help on using the changeset viewer.