hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
kernel/include/linux/wait.h
....@@ -11,6 +11,7 @@
1111
1212 #include <asm/current.h>
1313 #include <uapi/linux/wait.h>
14
+#include <linux/atomic.h>
1415
1516 typedef struct wait_queue_entry wait_queue_entry_t;
1617
....@@ -515,8 +516,8 @@
515516 int __ret = 0; \
516517 struct hrtimer_sleeper __t; \
517518 \
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); \
520521 if ((timeout) != KTIME_MAX) \
521522 hrtimer_start_range_ns(&__t.timer, timeout, \
522523 current->timer_slack_ns, \