Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
5714d2de
Commit
5714d2de
authored
Jul 16, 2007
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sched: document prio_to_wmult[]
document prio_to_wmult[]. Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
f9153ee6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
kernel/sched.c
kernel/sched.c
+7
-0
No files found.
kernel/sched.c
View file @
5714d2de
...
...
@@ -748,6 +748,13 @@ static const int prio_to_weight[40] = {
/* 10 */
110
,
87
,
70
,
56
,
45
,
36
,
29
,
23
,
18
,
15
,
};
/*
* Inverse (2^32/x) values of the prio_to_weight[] array, precalculated.
*
* In cases where the weight does not change often, we can use the
* precalculated inverse to speed up arithmetics by turning divisions
* into multiplications:
*/
static
const
u32
prio_to_wmult
[
40
]
=
{
48356
,
60446
,
75558
,
94446
,
118058
,
147573
,
184467
,
230589
,
288233
,
360285
,
450347
,
...
...
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