summaryrefslogtreecommitdiff
path: root/include/linux/task_work.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-10-28 21:37:38 +0000
committerMark Brown <broonie@kernel.org>2020-10-28 21:37:38 +0000
commitf59cddd8517ab880fb09bf1465b07b337e058b22 (patch)
treeb8ac2b4bd99f6b4860dd403bb39b2b7149ed06e0 /include/linux/task_work.h
parent43c3e148830aae5469c411a2bf951d4fe7fcea29 (diff)
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff)
Merge tag 'v5.10-rc1' into regulator-5.10
Linux 5.10-rc1
Diffstat (limited to 'include/linux/task_work.h')
-rw-r--r--include/linux/task_work.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/task_work.h b/include/linux/task_work.h
index 0fb93aafa478..0d848a1e9e62 100644
--- a/include/linux/task_work.h
+++ b/include/linux/task_work.h
@@ -13,9 +13,14 @@ init_task_work(struct callback_head *twork, task_work_func_t func)
twork->func = func;
}
-#define TWA_RESUME 1
-#define TWA_SIGNAL 2
-int task_work_add(struct task_struct *task, struct callback_head *twork, int);
+enum task_work_notify_mode {
+ TWA_NONE,
+ TWA_RESUME,
+ TWA_SIGNAL,
+};
+
+int task_work_add(struct task_struct *task, struct callback_head *twork,
+ enum task_work_notify_mode mode);
struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t);
void task_work_run(void);