.. | .. |
---|
11 | 11 | |
---|
12 | 12 | #include <asm/current.h> |
---|
13 | 13 | #include <uapi/linux/wait.h> |
---|
| 14 | +#include <linux/atomic.h> |
---|
14 | 15 | |
---|
15 | 16 | typedef struct wait_queue_entry wait_queue_entry_t; |
---|
16 | 17 | |
---|
.. | .. |
---|
515 | 516 | int __ret = 0; \ |
---|
516 | 517 | struct hrtimer_sleeper __t; \ |
---|
517 | 518 | \ |
---|
518 | | - hrtimer_init_on_stack(&__t.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); \ |
---|
519 | | - hrtimer_init_sleeper(&__t, current); \ |
---|
| 519 | + hrtimer_init_sleeper_on_stack(&__t, CLOCK_MONOTONIC, HRTIMER_MODE_REL, \ |
---|
| 520 | + current); \ |
---|
520 | 521 | if ((timeout) != KTIME_MAX) \ |
---|
521 | 522 | hrtimer_start_range_ns(&__t.timer, timeout, \ |
---|
522 | 523 | current->timer_slack_ns, \ |
---|