diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-27 06:38:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-27 20:33:37 -0400 |
commit | 5a157d5bf8288eaa86ec269a966559594ddd542e (patch) | |
tree | 0597106130ba8cb31878d13a03b32fb9d1dc8944 /arch/sparc/include/asm | |
parent | 1c133b4b3d58bf88293eeea0d9d090777333bf48 (diff) |
sparc: Create and use TIF_NOTIFY_RESUME.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm')
-rw-r--r-- | arch/sparc/include/asm/thread_info_32.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/thread_info_32.h b/arch/sparc/include/asm/thread_info_32.h index 2cf9db044055..cbb892d0dff0 100644 --- a/arch/sparc/include/asm/thread_info_32.h +++ b/arch/sparc/include/asm/thread_info_32.h | |||
@@ -130,7 +130,7 @@ BTFIXUPDEF_CALL(void, free_thread_info, struct thread_info *) | |||
130 | * thread information flag bit numbers | 130 | * thread information flag bit numbers |
131 | */ | 131 | */ |
132 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 132 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
133 | /* flag bit 1 is available */ | 133 | #define TIF_NOTIFY_RESUME 1 /* callback before returning to user */ |
134 | #define TIF_SIGPENDING 2 /* signal pending */ | 134 | #define TIF_SIGPENDING 2 /* signal pending */ |
135 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 135 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ |
136 | #define TIF_RESTORE_SIGMASK 4 /* restore signal mask in do_signal() */ | 136 | #define TIF_RESTORE_SIGMASK 4 /* restore signal mask in do_signal() */ |
@@ -142,12 +142,17 @@ BTFIXUPDEF_CALL(void, free_thread_info, struct thread_info *) | |||
142 | 142 | ||
143 | /* as above, but as bit values */ | 143 | /* as above, but as bit values */ |
144 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 144 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
145 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | ||
145 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 146 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
146 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 147 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
147 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) | 148 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) |
148 | #define _TIF_USEDFPU (1<<TIF_USEDFPU) | 149 | #define _TIF_USEDFPU (1<<TIF_USEDFPU) |
149 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 150 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
150 | 151 | ||
152 | #define _TIF_DO_NOTIFY_RESUME_MASK (_TIF_NOTIFY_RESUME | \ | ||
153 | _TIF_SIGPENDING | \ | ||
154 | _TIF_RESTORE_SIGMASK) | ||
155 | |||
151 | #endif /* __KERNEL__ */ | 156 | #endif /* __KERNEL__ */ |
152 | 157 | ||
153 | #endif /* _ASM_THREAD_INFO_H */ | 158 | #endif /* _ASM_THREAD_INFO_H */ |