Changeset 10c071e in mainline for arch/sparc64/include/atomic.h


Ignore:
Timestamp:
2005-12-15T16:57:48Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c68b97
Parents:
b4cad8b2
Message:

Fix ia64 and sparc64 to compile with new atomic_t.
Fix rwlock test #5 and semaphore test #1 to compile with new atomic_t.

sparc64 work.
TBA must be set before a function call when MMU is switched off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/include/atomic.h

    rb4cad8b2 r10c071e  
    3939 */
    4040
    41 static inline void atomic_inc(atomic_t *val) {
     41static inline void atomic_inc(atomic_t *val)
     42{
    4243        val->count++;
    4344}
    4445
    45 static inline void atomic_dec(atomic_t *val) {
     46static inline void atomic_dec(atomic_t *val)
     47{
    4648        val->count--;
    4749}
    4850
     51static inline void atomic_set(atomic_t *val, __u64 i)
     52{
     53        val->count = i;
     54}
     55
     56static inline __u64 atomic_get(atomic_t *val)
     57{
     58        return val->count;
     59}
     60
    4961#endif
Note: See TracChangeset for help on using the changeset viewer.