Rev 4055 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4055 | Rev 4678 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | ); |
86 | ); |
87 | 87 | ||
88 | return v; |
88 | return v; |
89 | } |
89 | } |
90 | 90 | ||
- | 91 | static inline void atomic_lock_arch(atomic_t *val) { |
|
- | 92 | do { |
|
- | 93 | while (val->count) |
|
- | 94 | ; |
|
- | 95 | } while (test_and_set(val)); |
|
- | 96 | } |
|
- | 97 | ||
91 | #endif |
98 | #endif |
92 | 99 | ||
93 | /** @} |
100 | /** @} |
94 | */ |
101 | */ |