diff options
| author | Ivan Kokshaysky <ink@jurassic.park.msu.ru> | 2002-09-23 20:31:27 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-09-23 20:31:27 -0700 |
| commit | 7f012496acc68bbd577c6ab1c253ad0b498f2333 (patch) | |
| tree | b4622fc64f3305a05ba774479e8081439f1623ea /include | |
| parent | 76f92de75c14216136a78e354928a1bc2a35e740 (diff) | |
[PATCH] another alpha update
- Makefile cleanups and fixes
- a bunch of syscalls added
- removed crap from asm/ide.h (it's not needed anymore)
- __down_read_trylock fix
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-alpha/ide.h | 11 | ||||
| -rw-r--r-- | include/asm-alpha/rwsem.h | 10 | ||||
| -rw-r--r-- | include/asm-alpha/unistd.h | 12 |
3 files changed, 18 insertions, 15 deletions
diff --git a/include/asm-alpha/ide.h b/include/asm-alpha/ide.h index 0ca863142cf5..63bb9f785498 100644 --- a/include/asm-alpha/ide.h +++ b/include/asm-alpha/ide.h @@ -80,17 +80,6 @@ static __inline__ void ide_init_default_hwifs(void) #endif } -#define ide_request_irq(irq,hand,flg,dev,id) request_irq((irq),(hand),(flg),(dev),(id)) -#define ide_free_irq(irq,dev_id) free_irq((irq), (dev_id)) -#define ide_check_region(from,extent) check_region((from), (extent)) -#define ide_request_region(from,extent,name) request_region((from), (extent), (name)) -#define ide_release_region(from,extent) release_region((from), (extent)) - -#define ide_ack_intr(hwif) (1) -#define ide_fix_driveid(id) do {} while (0) -#define ide_release_lock(lock) do {} while (0) -#define ide_get_lock(lock, hdlr, data) do {} while (0) - #endif /* __KERNEL__ */ #endif /* __ASMalpha_IDE_H */ diff --git a/include/asm-alpha/rwsem.h b/include/asm-alpha/rwsem.h index d98ba565ecb4..c3abe5d2d41b 100644 --- a/include/asm-alpha/rwsem.h +++ b/include/asm-alpha/rwsem.h @@ -93,14 +93,16 @@ static inline void __down_read(struct rw_semaphore *sem) */ static inline int __down_read_trylock(struct rw_semaphore *sem) { - long res, tmp; + long old, new, res; res = sem->count; do { - tmp = res + RWSEM_ACTIVE_READ_BIAS; - if (tmp <= 0) + new = res + RWSEM_ACTIVE_READ_BIAS; + if (new <= 0) break; - } while (cmpxchg(&sem->count, res, tmp) != res); + old = res; + res = cmpxchg(&sem->count, old, new); + } while (res != old); return res >= 0 ? 1 : 0; } diff --git a/include/asm-alpha/unistd.h b/include/asm-alpha/unistd.h index 33abc3bd434a..23eb6d2eb42d 100644 --- a/include/asm-alpha/unistd.h +++ b/include/asm-alpha/unistd.h @@ -331,6 +331,18 @@ #define __NR_removexattr 391 #define __NR_lremovexattr 392 #define __NR_fremovexattr 393 +#define __NR_futex 394 +#define __NR_sched_setaffinity 395 +#define __NR_sched_getaffinity 396 +#define __NR_tuxcall 397 +#define __NR_io_setup 398 +#define __NR_io_destroy 399 +#define __NR_io_getevents 400 +#define __NR_io_submit 401 +#define __NR_io_cancel 402 +#define __NR_alloc_hugepages 403 +#define __NR_free_hugepages 404 +#define __NR_exit_group 405 #if defined(__GNUC__) |
