Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753123AbbDFJMK (ORCPT ); Mon, 6 Apr 2015 05:12:10 -0400 Received: from mga09.intel.com ([134.134.136.24]:7462 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752889AbbDFJLq (ORCPT ); Mon, 6 Apr 2015 05:11:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,530,1422950400"; d="scan'208";a="477167891" From: Wanpeng Li To: Ingo Molnar , Peter Zijlstra Cc: Juri Lelli , linux-kernel@vger.kernel.org, Wanpeng Li Subject: [PATCH 6/7] sched/deadline: depend on clearing throttled status in replenish_dl_entity Date: Mon, 6 Apr 2015 16:53:18 +0800 Message-Id: <1428310399-13489-6-git-send-email-wanpeng.li@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428310399-13489-1-git-send-email-wanpeng.li@linux.intel.com> References: <1428310399-13489-1-git-send-email-wanpeng.li@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1130 Lines: 30 Since the natural place to clear ->dl_throttled is in replenish_dl_entity(), and the task which is adjusted the priority is the current, it will be dequeued and then enqueued w/ replenish which can guarantee ->dl_throttled can be cleared, this patch drop the clear throttled status in function rt_mutex_setprio. Signed-off-by: Wanpeng Li --- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 28b0d75..f1b9222 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3037,7 +3037,6 @@ void rt_mutex_setprio(struct task_struct *p, int prio) if (!dl_prio(p->normal_prio) || (pi_task && dl_entity_preempt(&pi_task->dl, &p->dl))) { p->dl.dl_boosted = 1; - p->dl.dl_throttled = 0; enqueue_flag = ENQUEUE_REPLENISH; } else p->dl.dl_boosted = 0; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/