projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ae7d5c
)
sched: wakeup-buddy tasks are cache-hot
author
Ingo Molnar
<mingo@elte.hu>
Sat, 15 Mar 2008 16:10:34 +0000
(17:10 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 19 Mar 2008 03:27:53 +0000
(
04:27
+0100)
Wakeup-buddy tasks are cache-hot - this makes it a bit harder
for the load-balancer to tear them apart. (but it's still possible,
if the load is sufficiently assymetric)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index adbd475cfd2556e5c28591cb103de399111c64a6..3f7c5eb254e205c24bc95bf5ac264e28d918d9b8 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-1396,6
+1396,12
@@
task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
{
s64 delta;
+ /*
+ * Buddy candidates are cache hot:
+ */
+ if (&p->se == cfs_rq_of(&p->se)->next)
+ return 1;
+
if (p->sched_class != &fair_sched_class)
return 0;