Message ID | 1431442004-18716-4-git-send-email-xlpang@126.com |
---|---|
State | Accepted |
Commit | 3fe33bcdd358dd8c641cf4d92c9d2d9972ca94dd |
Headers | show
Return-Path: <patchwork-forward+bncBCN6JTVP2IEBBXNFZCVAKGQEE2IMYEA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 39E43214A1 for <linaro@patches.linaro.org>; Tue, 12 May 2015 14:49:02 +0000 (UTC) Received: by laat2 with SMTP id t2sf2638888laa.2 for <linaro@patches.linaro.org>; Tue, 12 May 2015 07:49:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Wgnjxugu/tRfGG7o06504kiCFmexKdKFbGRMF69teqw=; b=gaATIc+eO9RSIfFh6vG7ICUbyHdzpFl/7kiFnqBnlQpgy8SemT0BbHrXomBL06C5VY ESiqBr5pcfgK8KqaiSF2QR2s18mjezcoesmpU4p4oYyZ6wlJVbuxoQ4fqLhbWHVBR+v7 xbEuMlgFSciveNrIx3JvRY//7avDYQc3hoBd3+lIDwAcBmF69VoBfFFf7HEpTWIsxn5X CokGmV2TNsYwSQOW9Y8MT6MmboNJU81Nb0cuRBJHxIttXHsddhyMVu/OesOWkmx5JxdY cWEBrl1cghPWojr3f2MfRtWbLO2LEyoJX/3BA5uMKlPS9UBZ6knZF94fFQ0/nA8TSKIy NsKw== X-Gm-Message-State: ALoCoQmmLUlF22BiDx8OnYdoYI0voWK366J52COoRXD5MG4DIjHVNpjXRI+XFT1NiR7ZJ+dB/F5J X-Received: by 10.112.203.168 with SMTP id kr8mr10884735lbc.10.1431442141136; Tue, 12 May 2015 07:49:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.195 with SMTP id da3ls44761lac.43.gmail; Tue, 12 May 2015 07:49:00 -0700 (PDT) X-Received: by 10.152.29.138 with SMTP id k10mr12201379lah.114.1431442140959; Tue, 12 May 2015 07:49:00 -0700 (PDT) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com. [2a00:1450:4010:c04::229]) by mx.google.com with ESMTPS id wh2si10517978lbb.24.2015.05.12.07.49.00 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 07:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::229 as permitted sender) client-ip=2a00:1450:4010:c04::229; Received: by lbcga7 with SMTP id ga7so7839004lbc.1 for <patchwork-forward@linaro.org>; Tue, 12 May 2015 07:49:00 -0700 (PDT) X-Received: by 10.112.140.231 with SMTP id rj7mr12049461lbb.76.1431442140827; Tue, 12 May 2015 07:49:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2136108lbb; Tue, 12 May 2015 07:48:59 -0700 (PDT) X-Received: by 10.70.90.231 with SMTP id bz7mr28511943pdb.15.1431442138929; Tue, 12 May 2015 07:48:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ji4si22797097pbd.56.2015.05.12.07.48.56; Tue, 12 May 2015 07:48:58 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933409AbbELOsx (ORCPT <rfc822;tyler.baker@linaro.org> + 28 others); Tue, 12 May 2015 10:48:53 -0400 Received: from m50-112.126.com ([123.125.50.112]:57851 "EHLO m50-112.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932988AbbELOsQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 May 2015 10:48:16 -0400 Received: from localhost.localdomain (unknown [210.21.223.3]) by smtp6 (Coremail) with SMTP id j9KowAAnVHFdElJVTB0hBw--.1248S5; Tue, 12 May 2015 22:47:03 +0800 (CST) From: Xunlei Pang <xlpang@126.com> To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra <peterz@infradead.org>, Steven Rostedt <rostedt@goodmis.org>, Juri Lelli <juri.lelli@gmail.com>, Ingo Molnar <mingo@redhat.com>, Xunlei Pang <pang.xunlei@linaro.org> Subject: [PATCH v3 4/4] sched/deadline: Remove redundant conditions from task_woken_dl() Date: Tue, 12 May 2015 22:46:44 +0800 Message-Id: <1431442004-18716-4-git-send-email-xlpang@126.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431442004-18716-1-git-send-email-xlpang@126.com> References: <1431442004-18716-1-git-send-email-xlpang@126.com> X-CM-TRANSID: j9KowAAnVHFdElJVTB0hBw--.1248S5 X-Coremail-Antispam: 1Uf129KBjvdXoWruFWktF4Dtr4UuF17AFyUtrb_yoW3ZwbEyw 1Sgr1kCw1Yvrs0y343Gay3KFyftw1qqFn5Aw4qg3y8CrWvyFZ8CrZY9FW5X398urs3CFnx G3Z3XF4kJr1rKjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUeldgJUUUUU== X-Originating-IP: [210.21.223.3] X-CM-SenderInfo: p0ost0bj6rjloofrz/1tbiWwj3v1PM8ZksywAAsL Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: xlpang@126.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::229 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; dmarc=fail (p=NONE dis=NONE) header.from=126.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 968612b..38c08c4 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -1564,8 +1564,6 @@ static void post_schedule_dl(struct rq *rq) static void task_woken_dl(struct rq *rq, struct task_struct *p) { if (!task_running(rq, p) && - !test_tsk_need_resched(rq->curr) && - has_pushable_dl_tasks(rq) && p->nr_cpus_allowed > 1 && dl_task(rq->curr) && (rq->curr->nr_cpus_allowed < 2 ||