Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d50349b0
Commit
d50349b0
authored
Apr 24, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
um: add TIF_NOTIFY_RESUME
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
3b7d15bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
arch/um/include/asm/thread_info.h
arch/um/include/asm/thread_info.h
+1
-0
arch/um/kernel/process.c
arch/um/kernel/process.c
+7
-1
No files found.
arch/um/include/asm/thread_info.h
View file @
d50349b0
...
...
@@ -71,6 +71,7 @@ static inline struct thread_info *current_thread_info(void)
#define TIF_MEMDIE 5
/* is terminating due to OOM killer */
#define TIF_SYSCALL_AUDIT 6
#define TIF_RESTORE_SIGMASK 7
#define TIF_NOTIFY_RESUME 8
#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
...
...
arch/um/kernel/process.c
View file @
d50349b0
...
...
@@ -18,6 +18,7 @@
#include <linux/seq_file.h>
#include <linux/tick.h>
#include <linux/threads.h>
#include <linux/tracehook.h>
#include <asm/current.h>
#include <asm/pgtable.h>
#include <asm/mmu_context.h>
...
...
@@ -114,8 +115,13 @@ void interrupt_end(void)
{
if
(
need_resched
())
schedule
();
if
(
test_t
sk_thread_flag
(
current
,
TIF_SIGPENDING
))
if
(
test_t
hread_flag
(
TIF_SIGPENDING
))
do_signal
();
if
(
test_and_clear_thread_flag
(
TIF_NOTIFY_RESUME
))
{
tracehook_notify_resume
(
&
current
->
thread
.
regs
);
if
(
current
->
replacement_session_keyring
)
key_replace_session_keyring
();
}
}
void
exit_thread
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment