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
f1860c34
Commit
f1860c34
authored
Nov 28, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sched/urgent' into sched/core
parents
64b7482d
4cd42620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
kernel/sched.c
kernel/sched.c
+3
-2
No files found.
kernel/sched.c
View file @
f1860c34
...
...
@@ -1433,9 +1433,10 @@ static int task_hot(struct task_struct *p, u64 now, struct sched_domain *sd);
static
unsigned
long
cpu_avg_load_per_task
(
int
cpu
)
{
struct
rq
*
rq
=
cpu_rq
(
cpu
);
unsigned
long
nr_running
=
rq
->
nr_running
;
if
(
rq
->
nr_running
)
rq
->
avg_load_per_task
=
rq
->
load
.
weight
/
rq
->
nr_running
;
if
(
nr_running
)
rq
->
avg_load_per_task
=
rq
->
load
.
weight
/
nr_running
;
else
rq
->
avg_load_per_task
=
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