task_work: cleanup notification modes
[linux-2.6-microblaze.git] / include / linux / task_work.h
index 0fb93aa..0d848a1 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);