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
3c6f29aa
Commit
3c6f29aa
authored
May 09, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sched: add enqueeu_task_head()
From: Ingo Molnar <mingo@elte.hu> Helper function for later patches
parent
78650e1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
kernel/sched.c
kernel/sched.c
+15
-0
No files found.
kernel/sched.c
View file @
3c6f29aa
...
...
@@ -331,6 +331,21 @@ static void enqueue_task(struct task_struct *p, prio_array_t *array)
p
->
array
=
array
;
}
#ifdef CONFIG_SMP
/*
* Used by the migration code - we pull tasks from the head of the
* remote queue so we want these tasks to show up at the head of the
* local queue:
*/
static
inline
void
enqueue_task_head
(
struct
task_struct
*
p
,
prio_array_t
*
array
)
{
list_add
(
&
p
->
run_list
,
array
->
queue
+
p
->
prio
);
__set_bit
(
p
->
prio
,
array
->
bitmap
);
array
->
nr_active
++
;
p
->
array
=
array
;
}
#endif
/*
* effective_prio - return the priority that is based on the static
* priority but is modified by bonuses/penalties.
...
...
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