Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2406051ybt; Tue, 16 Jun 2020 05:26:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG6JOp/C5jwfpmXZvGgmlN7SqZOr56IGXKkDBgpj6o2zK4akr3OZGWBSjEBEDrDNqofP8a X-Received: by 2002:a17:906:da02:: with SMTP id fi2mr2631210ejb.41.1592310377138; Tue, 16 Jun 2020 05:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592310377; cv=none; d=google.com; s=arc-20160816; b=0VNuZCh3pBtnz3rXN1h9GKCLgI61UIpBXERkHENygbrObikVDV3ayBmQaMFhJewsPk vZuTD+HW5MG96admrhPBFLGmEIbgavlwRRnpu8nduiOyw955XbYoUMV+ZICYbhQZk4fr sV8wivDP1k2s/cvYKjre8O+fVtji7FTss1IWBgHcUiZZLjIpROGTUaiPEtJ2V3DRonTp Wve0k3uJp1YUd+JeSndn+n11Env7vELjchQOhm5cmLorAgeBwEUiyeXWoT9+Qc+08jHQ HvqLBMJoqXcK+wPmsJ36K1QVooRRJe3HtOF4FYL2Z1sGbdI2+gb/6odaJf2N/9Xobvlu PYow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=NWcb79LtPduJGFQQD6SxEICJC5OWreS5btZnqnLff3o=; b=gH7XRnqrvBWxpfOCVBK1iy2ouqcgW06EkcN8GbJOu22uyA0mFBbp7Rm3pDeRSZuOTh HySyrxj4joHguYUjf8/RxhGc5+nuag07Trhsm+LjHq/BI1jv2CdeB/51j2ez0jVT9Uw9 Q8FMX2hhbVQoFsO2Jr+qbAjFGo5wsXgkLNuIbIg9WkyyqI3s3H9bKUN442+sEl9Dwf4F b1PbJlQfR8BoiF5K1AXSMV9mIyYQ+cXEZbqexW5xMwHTEj4x27d9ppUuOikSkQ3meql9 61g+xFdQE/s5rv+0LEDW4zazeXGbEV5mfzaz8kKPbHNOUtnNvIb6YSLbk5wY/8+DSU5z +eOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si10746060edq.571.2020.06.16.05.25.54; Tue, 16 Jun 2020 05:26:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728615AbgFPMXX (ORCPT + 99 others); Tue, 16 Jun 2020 08:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728782AbgFPMWM (ORCPT ); Tue, 16 Jun 2020 08:22:12 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF3C2C08C5C2; Tue, 16 Jun 2020 05:22:11 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jlAbQ-0004m2-06; Tue, 16 Jun 2020 14:22:08 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 909371C0854; Tue, 16 Jun 2020 14:21:56 +0200 (CEST) Date: Tue, 16 Jun 2020 12:21:56 -0000 From: "tip-bot2 for Dietmar Eggemann" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/core: Remove redundant 'preempt' param from sched_class->yield_to_task() Cc: Dietmar Eggemann , "Peter Zijlstra (Intel)" , x86 , LKML In-Reply-To: <20200603080304.16548-3-dietmar.eggemann@arm.com> References: <20200603080304.16548-3-dietmar.eggemann@arm.com> MIME-Version: 1.0 Message-ID: <159231011637.16989.10871387940341637458.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 0900acf2d8273f79432a4ded122ad5a265e85783 Gitweb: https://git.kernel.org/tip/0900acf2d8273f79432a4ded122ad5a265e85783 Author: Dietmar Eggemann AuthorDate: Wed, 03 Jun 2020 10:03:02 +02:00 Committer: Peter Zijlstra CommitterDate: Mon, 15 Jun 2020 14:10:01 +02:00 sched/core: Remove redundant 'preempt' param from sched_class->yield_to_task() Commit 6d1cafd8b56e ("sched: Resched proper CPU on yield_to()") moved the code to resched the CPU from yield_to_task_fair() to yield_to() making the preempt parameter in sched_class->yield_to_task() unnecessary. Remove it. No other sched_class implements yield_to_task(). Signed-off-by: Dietmar Eggemann Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200603080304.16548-3-dietmar.eggemann@arm.com --- kernel/sched/core.c | 2 +- kernel/sched/fair.c | 2 +- kernel/sched/sched.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 8f36032..9c89b0e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5810,7 +5810,7 @@ again: if (task_running(p_rq, p) || p->state) goto out_unlock; - yielded = curr->sched_class->yield_to_task(rq, p, preempt); + yielded = curr->sched_class->yield_to_task(rq, p); if (yielded) { schedstat_inc(rq->yld_count); /* diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index cbcb2f7..6a4dab2 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7157,7 +7157,7 @@ static void yield_task_fair(struct rq *rq) set_skip_buddy(se); } -static bool yield_to_task_fair(struct rq *rq, struct task_struct *p, bool preempt) +static bool yield_to_task_fair(struct rq *rq, struct task_struct *p) { struct sched_entity *se = &p->se; diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 1d4e94c..8d5d068 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1748,7 +1748,7 @@ struct sched_class { void (*enqueue_task) (struct rq *rq, struct task_struct *p, int flags); void (*dequeue_task) (struct rq *rq, struct task_struct *p, int flags); void (*yield_task) (struct rq *rq); - bool (*yield_to_task)(struct rq *rq, struct task_struct *p, bool preempt); + bool (*yield_to_task)(struct rq *rq, struct task_struct *p); void (*check_preempt_curr)(struct rq *rq, struct task_struct *p, int flags);