aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.cz>2007-12-12 09:21:16 -0500
committerTony Luck <tony.luck@intel.com>2008-02-08 15:00:54 -0500
commit5aa92ffda1b6244b4a248df0b95c07d183ab96d2 (patch)
tree8375f4960be7a53e4c313037807ff05f99ce1b98 /include
parentad9e39c70f46c5e17b1ed5912e8693454fec1455 (diff)
[IA64] Rename TIF_PERFMON_WORK back to TIF_NOTIFY_RESUME
Since the RSE synchronization will need a TIF_ flag, but all work-to-be-done bits are already used, so we have to multiplex TIF_NOTIFY_RESUME again. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Petr Tesarik <ptesarik@suse.cz> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ia64/thread_info.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-ia64/thread_info.h b/include/asm-ia64/thread_info.h
index d16031e72efa..5a2c47957069 100644
--- a/include/asm-ia64/thread_info.h
+++ b/include/asm-ia64/thread_info.h
@@ -71,6 +71,9 @@ struct thread_info {
71#define alloc_task_struct() ((struct task_struct *)__get_free_pages(GFP_KERNEL | __GFP_COMP, KERNEL_STACK_SIZE_ORDER)) 71#define alloc_task_struct() ((struct task_struct *)__get_free_pages(GFP_KERNEL | __GFP_COMP, KERNEL_STACK_SIZE_ORDER))
72#define free_task_struct(tsk) free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER) 72#define free_task_struct(tsk) free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER)
73 73
74#define tsk_set_notify_resume(tsk) \
75 set_ti_thread_flag(task_thread_info(tsk), TIF_NOTIFY_RESUME)
76extern void tsk_clear_notify_resume(struct task_struct *tsk);
74#endif /* !__ASSEMBLY */ 77#endif /* !__ASSEMBLY */
75 78
76/* 79/*
@@ -85,7 +88,7 @@ struct thread_info {
85#define TIF_SYSCALL_AUDIT 3 /* syscall auditing active */ 88#define TIF_SYSCALL_AUDIT 3 /* syscall auditing active */
86#define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ 89#define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */
87#define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */ 90#define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */
88#define TIF_PERFMON_WORK 6 /* work for pfm_handle_work() */ 91#define TIF_NOTIFY_RESUME 6 /* resumption notification requested */
89#define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ 92#define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */
90#define TIF_MEMDIE 17 93#define TIF_MEMDIE 17
91#define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */ 94#define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */
@@ -97,7 +100,7 @@ struct thread_info {
97#define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) 100#define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP)
98#define _TIF_SYSCALL_TRACEAUDIT (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP) 101#define _TIF_SYSCALL_TRACEAUDIT (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP)
99#define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) 102#define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK)
100#define _TIF_PERFMON_WORK (1 << TIF_PERFMON_WORK) 103#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
101#define _TIF_SIGPENDING (1 << TIF_SIGPENDING) 104#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
102#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) 105#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
103#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) 106#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG)
@@ -106,7 +109,7 @@ struct thread_info {
106#define _TIF_FREEZE (1 << TIF_FREEZE) 109#define _TIF_FREEZE (1 << TIF_FREEZE)
107 110
108/* "work to do on user-return" bits */ 111/* "work to do on user-return" bits */
109#define TIF_ALLWORK_MASK (_TIF_SIGPENDING|_TIF_PERFMON_WORK|_TIF_SYSCALL_AUDIT|\ 112#define TIF_ALLWORK_MASK (_TIF_SIGPENDING|_TIF_NOTIFY_RESUME|_TIF_SYSCALL_AUDIT|\
110 _TIF_NEED_RESCHED| _TIF_SYSCALL_TRACE|\ 113 _TIF_NEED_RESCHED| _TIF_SYSCALL_TRACE|\
111 _TIF_RESTORE_SIGMASK) 114 _TIF_RESTORE_SIGMASK)
112/* like TIF_ALLWORK_BITS but sans TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT */ 115/* like TIF_ALLWORK_BITS but sans TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT */