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
nexedi
linux
Commits
e8c37ac3
Commit
e8c37ac3
authored
Nov 25, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] microoptimise do_exit()
parent
4af15b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kernel/exit.c
kernel/exit.c
+3
-3
No files found.
kernel/exit.c
View file @
e8c37ac3
...
@@ -636,11 +636,11 @@ NORET_TYPE void do_exit(long code)
...
@@ -636,11 +636,11 @@ NORET_TYPE void do_exit(long code)
{
{
struct
task_struct
*
tsk
=
current
;
struct
task_struct
*
tsk
=
current
;
if
(
in_interrupt
(
))
if
(
unlikely
(
in_interrupt
()
))
panic
(
"Aiee, killing interrupt handler!"
);
panic
(
"Aiee, killing interrupt handler!"
);
if
(
!
tsk
->
pid
)
if
(
unlikely
(
!
tsk
->
pid
)
)
panic
(
"Attempted to kill the idle task!"
);
panic
(
"Attempted to kill the idle task!"
);
if
(
tsk
->
pid
==
1
)
if
(
unlikely
(
tsk
->
pid
==
1
)
)
panic
(
"Attempted to kill init!"
);
panic
(
"Attempted to kill init!"
);
tsk
->
flags
|=
PF_EXITING
;
tsk
->
flags
|=
PF_EXITING
;
del_timer_sync
(
&
tsk
->
real_timer
);
del_timer_sync
(
&
tsk
->
real_timer
);
...
...
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