aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index f04add905bdf..fdd26fffaa20 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2915,6 +2915,9 @@ static inline int wake_priority_sleeper(struct rq *rq)
2915 int ret = 0; 2915 int ret = 0;
2916 2916
2917#ifdef CONFIG_SCHED_SMT 2917#ifdef CONFIG_SCHED_SMT
2918 if (!rq->nr_running)
2919 return 0;
2920
2918 spin_lock(&rq->lock); 2921 spin_lock(&rq->lock);
2919 /* 2922 /*
2920 * If an SMT sibling task has been put to sleep for priority 2923 * If an SMT sibling task has been put to sleep for priority