Changeset 5f85c91 in mainline for arch/ia32/include/atomic.h


Ignore:
Timestamp:
2005-11-08T12:22:35Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36a140b
Parents:
389f41e
Message:

make configuration variables usage consistent

File:
1 edited

Legend:

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

    r389f41e r5f85c91  
    3333
    3434static inline void atomic_inc(volatile int *val) {
    35 #ifdef __SMP__
     35#ifdef CONFIG_SMP
    3636        __asm__ volatile ("lock incl %0\n" : "=m" (*val));
    3737#else
    3838        __asm__ volatile ("incl %0\n" : "=m" (*val));
    39 #endif /* __SMP__ */
     39#endif /* CONFIG_SMP */
    4040}
    4141
    4242static inline void atomic_dec(volatile int *val) {
    43 #ifdef __SMP__
     43#ifdef CONFIG_SMP
    4444        __asm__ volatile ("lock decl %0\n" : "=m" (*val));
    4545#else
    4646        __asm__ volatile ("decl %0\n" : "=m" (*val));
    47 #endif /* __SMP__ */
     47#endif /* CONFIG_SMP */
    4848}
    4949
Note: See TracChangeset for help on using the changeset viewer.