diff options
| author | Jiri Slaby <jslaby@suse.cz> | 2017-02-13 20:42:33 -0500 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2017-03-08 03:21:04 -0500 |
| commit | 30d64f1904d44a7e52a93d711d57aabbac2efd72 (patch) | |
| tree | 4bf48837ac26031ea13653760a7a67b0d6f443bb | |
| parent | a768f78429fd9b0b07f5795dd62f31a519fc1bae (diff) | |
livepatch/s390: reorganize TIF thread flag bits
Group the TIF thread flag bits by their inclusion in the _TIF_WORK and
_TIF_TRACE macros.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
| -rw-r--r-- | arch/s390/include/asm/thread_info.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index a5b54a445eb8..4977668788d7 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h | |||
| @@ -51,14 +51,12 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); | |||
| 51 | /* | 51 | /* |
| 52 | * thread information flags bit numbers | 52 | * thread information flags bit numbers |
| 53 | */ | 53 | */ |
| 54 | /* _TIF_WORK bits */ | ||
| 54 | #define TIF_NOTIFY_RESUME 0 /* callback before returning to user */ | 55 | #define TIF_NOTIFY_RESUME 0 /* callback before returning to user */ |
| 55 | #define TIF_SIGPENDING 1 /* signal pending */ | 56 | #define TIF_SIGPENDING 1 /* signal pending */ |
| 56 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ | 57 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
| 57 | #define TIF_SYSCALL_TRACE 3 /* syscall trace active */ | 58 | #define TIF_UPROBE 3 /* breakpointed or single-stepping */ |
| 58 | #define TIF_SYSCALL_AUDIT 4 /* syscall auditing active */ | 59 | |
| 59 | #define TIF_SECCOMP 5 /* secure computing */ | ||
| 60 | #define TIF_SYSCALL_TRACEPOINT 6 /* syscall tracepoint instrumentation */ | ||
| 61 | #define TIF_UPROBE 7 /* breakpointed or single-stepping */ | ||
| 62 | #define TIF_31BIT 16 /* 32bit process */ | 60 | #define TIF_31BIT 16 /* 32bit process */ |
| 63 | #define TIF_MEMDIE 17 /* is terminating due to OOM killer */ | 61 | #define TIF_MEMDIE 17 /* is terminating due to OOM killer */ |
| 64 | #define TIF_RESTORE_SIGMASK 18 /* restore signal mask in do_signal() */ | 62 | #define TIF_RESTORE_SIGMASK 18 /* restore signal mask in do_signal() */ |
| @@ -66,15 +64,23 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); | |||
| 66 | #define TIF_BLOCK_STEP 20 /* This task is block stepped */ | 64 | #define TIF_BLOCK_STEP 20 /* This task is block stepped */ |
| 67 | #define TIF_UPROBE_SINGLESTEP 21 /* This task is uprobe single stepped */ | 65 | #define TIF_UPROBE_SINGLESTEP 21 /* This task is uprobe single stepped */ |
| 68 | 66 | ||
| 67 | /* _TIF_TRACE bits */ | ||
| 68 | #define TIF_SYSCALL_TRACE 24 /* syscall trace active */ | ||
| 69 | #define TIF_SYSCALL_AUDIT 25 /* syscall auditing active */ | ||
| 70 | #define TIF_SECCOMP 26 /* secure computing */ | ||
| 71 | #define TIF_SYSCALL_TRACEPOINT 27 /* syscall tracepoint instrumentation */ | ||
| 72 | |||
| 69 | #define _TIF_NOTIFY_RESUME _BITUL(TIF_NOTIFY_RESUME) | 73 | #define _TIF_NOTIFY_RESUME _BITUL(TIF_NOTIFY_RESUME) |
| 70 | #define _TIF_SIGPENDING _BITUL(TIF_SIGPENDING) | 74 | #define _TIF_SIGPENDING _BITUL(TIF_SIGPENDING) |
| 71 | #define _TIF_NEED_RESCHED _BITUL(TIF_NEED_RESCHED) | 75 | #define _TIF_NEED_RESCHED _BITUL(TIF_NEED_RESCHED) |
| 76 | #define _TIF_UPROBE _BITUL(TIF_UPROBE) | ||
| 77 | |||
| 78 | #define _TIF_31BIT _BITUL(TIF_31BIT) | ||
| 79 | #define _TIF_SINGLE_STEP _BITUL(TIF_SINGLE_STEP) | ||
| 80 | |||
| 72 | #define _TIF_SYSCALL_TRACE _BITUL(TIF_SYSCALL_TRACE) | 81 | #define _TIF_SYSCALL_TRACE _BITUL(TIF_SYSCALL_TRACE) |
| 73 | #define _TIF_SYSCALL_AUDIT _BITUL(TIF_SYSCALL_AUDIT) | 82 | #define _TIF_SYSCALL_AUDIT _BITUL(TIF_SYSCALL_AUDIT) |
| 74 | #define _TIF_SECCOMP _BITUL(TIF_SECCOMP) | 83 | #define _TIF_SECCOMP _BITUL(TIF_SECCOMP) |
| 75 | #define _TIF_SYSCALL_TRACEPOINT _BITUL(TIF_SYSCALL_TRACEPOINT) | 84 | #define _TIF_SYSCALL_TRACEPOINT _BITUL(TIF_SYSCALL_TRACEPOINT) |
| 76 | #define _TIF_UPROBE _BITUL(TIF_UPROBE) | ||
| 77 | #define _TIF_31BIT _BITUL(TIF_31BIT) | ||
| 78 | #define _TIF_SINGLE_STEP _BITUL(TIF_SINGLE_STEP) | ||
| 79 | 85 | ||
| 80 | #endif /* _ASM_THREAD_INFO_H */ | 86 | #endif /* _ASM_THREAD_INFO_H */ |
