From 45eba39e076a60660ae6bf579a06541f560f0b3d Mon Sep 17 00:00:00 2001 From: Pradeep P V K Date: Tue, 4 May 2021 16:12:16 +0530 Subject: [PATCH] wait: add wake_up_sync() The synchronous wakeup interface is available only for the interruptible wakeup. Add it for normal wakeup. Change-Id: Ia4460aa55690d14d203cdc843bd600c9e26c53f1 Suggested-by: Pavankumar Kondeti Signed-off-by: Pradeep P V K --- include/linux/wait.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/wait.h b/include/linux/wait.h index 3eb7cae8206c..3222e3a2daaf 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -215,6 +215,7 @@ void __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode, int nr); #define wake_up_interruptible_nr(x, nr) __wake_up(x, TASK_INTERRUPTIBLE, nr, NULL) #define wake_up_interruptible_all(x) __wake_up(x, TASK_INTERRUPTIBLE, 0, NULL) #define wake_up_interruptible_sync(x) __wake_up_sync((x), TASK_INTERRUPTIBLE, 1) +#define wake_up_sync(x) __wake_up_sync(x, TASK_NORMAL, 1) /* * Wakeup macros to be used to report events to the targets.