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
d25ce4cd
Commit
d25ce4cd
authored
Mar 17, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sched: cache hot buddy
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
1fc8afa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
kernel/sched.c
kernel/sched.c
+9
-7
No files found.
kernel/sched.c
View file @
d25ce4cd
...
@@ -625,20 +625,22 @@ enum {
...
@@ -625,20 +625,22 @@ enum {
SCHED_FEAT_NEW_FAIR_SLEEPERS
=
1
,
SCHED_FEAT_NEW_FAIR_SLEEPERS
=
1
,
SCHED_FEAT_WAKEUP_PREEMPT
=
2
,
SCHED_FEAT_WAKEUP_PREEMPT
=
2
,
SCHED_FEAT_START_DEBIT
=
4
,
SCHED_FEAT_START_DEBIT
=
4
,
SCHED_FEAT_HRTICK
=
8
,
SCHED_FEAT_AFFINE_WAKEUPS
=
8
,
SCHED_FEAT_DOUBLE_TICK
=
16
,
SCHED_FEAT_CACHE_HOT_BUDDY
=
16
,
SCHED_FEAT_SYNC_WAKEUPS
=
32
,
SCHED_FEAT_HRTICK
=
32
,
SCHED_FEAT_AFFINE_WAKEUPS
=
64
,
SCHED_FEAT_DOUBLE_TICK
=
64
,
SCHED_FEAT_SYNC_WAKEUPS
=
128
,
};
};
const_debug
unsigned
int
sysctl_sched_features
=
const_debug
unsigned
int
sysctl_sched_features
=
SCHED_FEAT_NEW_FAIR_SLEEPERS
*
1
|
SCHED_FEAT_NEW_FAIR_SLEEPERS
*
1
|
SCHED_FEAT_WAKEUP_PREEMPT
*
1
|
SCHED_FEAT_WAKEUP_PREEMPT
*
1
|
SCHED_FEAT_START_DEBIT
*
1
|
SCHED_FEAT_START_DEBIT
*
1
|
SCHED_FEAT_AFFINE_WAKEUPS
*
1
|
SCHED_FEAT_CACHE_HOT_BUDDY
*
1
|
SCHED_FEAT_HRTICK
*
1
|
SCHED_FEAT_HRTICK
*
1
|
SCHED_FEAT_DOUBLE_TICK
*
0
|
SCHED_FEAT_DOUBLE_TICK
*
0
|
SCHED_FEAT_SYNC_WAKEUPS
*
0
|
SCHED_FEAT_SYNC_WAKEUPS
*
0
;
SCHED_FEAT_AFFINE_WAKEUPS
*
1
;
#define sched_feat(x) (sysctl_sched_features & SCHED_FEAT_##x)
#define sched_feat(x) (sysctl_sched_features & SCHED_FEAT_##x)
...
@@ -1519,7 +1521,7 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
...
@@ -1519,7 +1521,7 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
/*
/*
* Buddy candidates are cache hot:
* Buddy candidates are cache hot:
*/
*/
if
(
&
p
->
se
==
cfs_rq_of
(
&
p
->
se
)
->
next
)
if
(
sched_feat
(
CACHE_HOT_BUDDY
)
&&
(
&
p
->
se
==
cfs_rq_of
(
&
p
->
se
)
->
next
)
)
return
1
;
return
1
;
if
(
p
->
sched_class
!=
&
fair_sched_class
)
if
(
p
->
sched_class
!=
&
fair_sched_class
)
...
...
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