Rev 1111 | Rev 1116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1111 | Rev 1114 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | return 0; |
47 | return 0; |
48 | } |
48 | } |
49 | 49 | ||
50 | int futex_up(atomic_t *futex) |
50 | int futex_up(atomic_t *futex) |
51 | { |
51 | { |
- | 52 | long val; |
|
- | 53 | ||
52 | if (atomic_preinc(futex) == 0) |
54 | val = atomic_postinc(futex); |
- | 55 | if (val < 0) |
|
53 | return __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->count); |
56 | return __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->count); |
54 | 57 | ||
55 | return 0; |
58 | return 0; |
56 | } |
59 | } |