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
b6ce34a9
Commit
b6ce34a9
authored
Apr 04, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the assembly-level code match the preempt_sched
changes
parent
df6e3433
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
arch/i386/kernel/entry.S
arch/i386/kernel/entry.S
+4
-3
include/asm-i386/thread_info.h
include/asm-i386/thread_info.h
+2
-0
include/linux/sched.h
include/linux/sched.h
+0
-1
No files found.
arch/i386/kernel/entry.S
View file @
b6ce34a9
...
...
@@ -238,10 +238,11 @@ ENTRY(resume_kernel)
movl
SYMBOL_NAME
(
irq_stat
)+
local_bh_count
CPU_IDX
,
%
ecx
addl
SYMBOL_NAME
(
irq_stat
)+
local_irq_count
CPU_IDX
,
%
ecx
jnz
restore_all
incl
TI_PRE_COUNT
(%
ebx
)
movl
$PREEMPT_ACTIVE
,
TI_PRE_COUNT
(%
ebx
)
sti
call
SYMBOL_NAME
(
preempt_schedule
)
jmp
ret_from_intr
call
SYMBOL_NAME
(
schedule
)
movl
$
0
,
TI_PRE_COUNT
(%
ebx
)
jmp
restore_all
#endif
#
system
call
handler
stub
...
...
include/asm-i386/thread_info.h
View file @
b6ce34a9
...
...
@@ -47,6 +47,8 @@ struct thread_info {
#endif
#define PREEMPT_ACTIVE 0x4000000
/*
* macros/functions for gaining access to the thread information structure
*/
...
...
include/linux/sched.h
View file @
b6ce34a9
...
...
@@ -91,7 +91,6 @@ extern unsigned long nr_running(void);
#define TASK_UNINTERRUPTIBLE 2
#define TASK_ZOMBIE 4
#define TASK_STOPPED 8
#define PREEMPT_ACTIVE 0x4000000
#define __set_task_state(tsk, state_value) \
do { (tsk)->state = (state_value); } while (0)
...
...
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