diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 789001da0a94..cae6700bedb3 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2008,7 +2008,7 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd) | |||
2008 | /* | 2008 | /* |
2009 | * Buddy candidates are cache hot: | 2009 | * Buddy candidates are cache hot: |
2010 | */ | 2010 | */ |
2011 | if (sched_feat(CACHE_HOT_BUDDY) && | 2011 | if (sched_feat(CACHE_HOT_BUDDY) && this_rq()->nr_running && |
2012 | (&p->se == cfs_rq_of(&p->se)->next || | 2012 | (&p->se == cfs_rq_of(&p->se)->next || |
2013 | &p->se == cfs_rq_of(&p->se)->last)) | 2013 | &p->se == cfs_rq_of(&p->se)->last)) |
2014 | return 1; | 2014 | return 1; |