.. | .. |
---|
2160 | 2160 | s64 remaining; |
---|
2161 | 2161 | struct hrtimer_sleeper t; |
---|
2162 | 2162 | |
---|
2163 | | - hrtimer_init_on_stack(&t.timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); |
---|
| 2163 | + hrtimer_init_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_ABS, |
---|
| 2164 | + current); |
---|
2164 | 2165 | hrtimer_set_expires(&t.timer, spin_until); |
---|
2165 | 2166 | |
---|
2166 | 2167 | remaining = ktime_to_ns(hrtimer_expires_remaining(&t.timer)); |
---|
.. | .. |
---|
2175 | 2176 | } while (ktime_compare(end_time, spin_until) < 0); |
---|
2176 | 2177 | } else { |
---|
2177 | 2178 | /* see do_nanosleep */ |
---|
2178 | | - hrtimer_init_sleeper(&t, current); |
---|
2179 | 2179 | do { |
---|
2180 | 2180 | set_current_state(TASK_INTERRUPTIBLE); |
---|
2181 | 2181 | hrtimer_start_expires(&t.timer, HRTIMER_MODE_ABS); |
---|