diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-10-19 10:54:24 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-10-19 10:54:24 +0000 |
commit | 74fb822e8a392e1828b818713e4a1df3006c25d4 (patch) | |
tree | 179d8a88820d993865a7956176f3aab1e344a2f4 /sys/ofed | |
parent | 5bb43cdb3135beef85654ab56a46c76f3879d641 (diff) | |
download | FreeBSD-src-74fb822e8a392e1828b818713e4a1df3006c25d4.zip FreeBSD-src-74fb822e8a392e1828b818713e4a1df3006c25d4.tar.gz |
Merge LinuxKPI changes from DragonflyBSD:
- Added support for multiple new Linux functions.
- Properly implement DEFINE_WAIT() and init_waitqueue_head() macros.
- Removed FreeBSD specific __wait_queue_head structure definition.
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed')
-rw-r--r-- | sys/ofed/include/linux/wait.h | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/sys/ofed/include/linux/wait.h b/sys/ofed/include/linux/wait.h index 80047f2..dccd0f3 100644 --- a/sys/ofed/include/linux/wait.h +++ b/sys/ofed/include/linux/wait.h @@ -39,15 +39,18 @@ #include <sys/kernel.h> #include <sys/proc.h> -struct __wait_queue_head { +typedef struct { +} wait_queue_t; + +typedef struct { unsigned int wchan; -}; -typedef struct __wait_queue_head wait_queue_head_t; +} wait_queue_head_t; -#define init_waitqueue_head(x) +#define init_waitqueue_head(x) \ + do { } while (0) static inline void -__wake_up(struct __wait_queue_head *q, int all) +__wake_up(wait_queue_head_t *q, int all) { int wakeup_swapper; void *c; @@ -108,6 +111,23 @@ do { \ -_error; \ }) -#define DEFINE_WAIT(x) +static inline int +waitqueue_active(wait_queue_head_t *q) +{ + return 0; /* XXX: not really implemented */ +} + +#define DEFINE_WAIT(name) \ + wait_queue_t name = {} + +static inline void +prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state) +{ +} + +static inline void +finish_wait(wait_queue_head_t *q, wait_queue_t *wait) +{ +} #endif /* _LINUX_WAIT_H_ */ |