]> Git Repo - linux.git/blobdiff - include/linux/task_work.h
scsi: ibmvfc: Complete commands outside the host/queue lock
[linux.git] / include / linux / task_work.h
index 0fb93aafa4785e981aa92ef7e805495e28bb778c..0d848a1e9e62f18840ebd33a4e355b50d1526629 100644 (file)
@@ -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);
This page took 0.035433 seconds and 4 git commands to generate.