Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2405593ybt; Tue, 16 Jun 2020 05:25:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJTxkVmsrCx5jyFtxbVG8f6R/S7PA2ha3ZtAI7y01CxL7wWGPpjEEjxa+RR9iEn146zZCM X-Received: by 2002:a50:d499:: with SMTP id s25mr2386019edi.161.1592310336830; Tue, 16 Jun 2020 05:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592310336; cv=none; d=google.com; s=arc-20160816; b=F4rPa/nwzUmLWBBkJQzvKbOFKP22Q6JKty3AF3MEt/qfc1kk63xfN3nR48ojEGMe/8 Fi5hTFW/2hNRMcLMOS3FaYqZAJgJJjS2PNPny9oE9J67PnMb+5KltFBwX68ETjqhWItl d6ANGf6LR4Qv82JqbJewzUbF80MR/ej6Pe0RqJZ3UYlMDkaU04JHJSoXXF1FOCfxiFJ7 0pHOgr6w8Wtl6RPqLlwRe6GWtLOPWXT1QBaNrqqarlecPBToMKEVidH3jcdpSMRmIbuA Kai9GLeZ/AschXtJkte59Jhg3MscyDda2OMHhKx3Iq7d2DscGn5lLbIQlFJJuNAofq/X 4KsA== 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=4kwEQBwn5tDiB0gQyoJGd92uPNLeKS/7fHZM41s/UB8=; b=TkZLneurSaHTzaRkvmyvoBQPM0tbGfzx9F9qlI47WCO67x3kcHOvbd3umRmjdjvk4q 0pYIAs1QyqFoMsqhAEz8juRzxzW7dwOgp7+puJD0HJnUPDCWlLotc9x4UbI6QN5qdJhl DXnb0wF1HUbFIRqX0pA6FKVgopCcf3eV0W88Wi6QZ3O/Jh5nD40K8ZYgSFXGHTxXoDeb yrNAddvi/nXKDCGjhTwNANj+h5m3WPcDw+XjmGaoHC6mdwB2OxkSaVPFJL0q1vqafJe/ tKXDrCZbFQ+FFb662gurgwz7lHF4aevmqgiLJI5VwS2NWk5JLdFdYw3K8129jxihQWbB NMxw== 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 i17si13910743ejo.179.2020.06.16.05.25.14; Tue, 16 Jun 2020 05:25:36 -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 S1729212AbgFPMWr (ORCPT + 99 others); Tue, 16 Jun 2020 08:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728991AbgFPMWK (ORCPT ); Tue, 16 Jun 2020 08:22:10 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A171C08C5C5; Tue, 16 Jun 2020 05:22:10 -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 1jlAbO-0004ln-4u; Tue, 16 Jun 2020 14:22:06 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 3F8531C07B4; 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/idle,stop: Remove .get_rr_interval from sched_class Cc: Dietmar Eggemann , "Peter Zijlstra (Intel)" , x86 , LKML In-Reply-To: <20200603080304.16548-4-dietmar.eggemann@arm.com> References: <20200603080304.16548-4-dietmar.eggemann@arm.com> MIME-Version: 1.0 Message-ID: <159231011604.16989.9736333462235066498.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: e3e76a6a04114ec95b0969cd026e8904c67b431b Gitweb: https://git.kernel.org/tip/e3e76a6a04114ec95b0969cd026e8904c67b431b Author: Dietmar Eggemann AuthorDate: Wed, 03 Jun 2020 10:03:03 +02:00 Committer: Peter Zijlstra CommitterDate: Mon, 15 Jun 2020 14:10:01 +02:00 sched/idle,stop: Remove .get_rr_interval from sched_class The idle task and stop task sched_classes return 0 in this function. The single call site in sched_rr_get_interval() calls p->sched_class->get_rr_interval() only conditional in case it is defined. Otherwise time_slice=0 will be used. The deadline sched class does not define it. Commit a57beec5d427 ("sched: Make sched_class::get_rr_interval() optional") introduced the default time-slice=0 for sched classes which do not provide this function. So .get_rr_interval for idle and stop sched_class can be removed to shrink the code a little. Signed-off-by: Dietmar Eggemann Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200603080304.16548-4-dietmar.eggemann@arm.com --- kernel/sched/idle.c | 7 ------- kernel/sched/stop_task.c | 8 -------- 2 files changed, 15 deletions(-) diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c index 05deb81..8d75ca2 100644 --- a/kernel/sched/idle.c +++ b/kernel/sched/idle.c @@ -446,11 +446,6 @@ prio_changed_idle(struct rq *rq, struct task_struct *p, int oldprio) BUG(); } -static unsigned int get_rr_interval_idle(struct rq *rq, struct task_struct *task) -{ - return 0; -} - static void update_curr_idle(struct rq *rq) { } @@ -479,8 +474,6 @@ const struct sched_class idle_sched_class = { .task_tick = task_tick_idle, - .get_rr_interval = get_rr_interval_idle, - .prio_changed = prio_changed_idle, .switched_to = switched_to_idle, .update_curr = update_curr_idle, diff --git a/kernel/sched/stop_task.c b/kernel/sched/stop_task.c index 4c9e997..3e50a6a 100644 --- a/kernel/sched/stop_task.c +++ b/kernel/sched/stop_task.c @@ -102,12 +102,6 @@ prio_changed_stop(struct rq *rq, struct task_struct *p, int oldprio) BUG(); /* how!?, what priority? */ } -static unsigned int -get_rr_interval_stop(struct rq *rq, struct task_struct *task) -{ - return 0; -} - static void update_curr_stop(struct rq *rq) { } @@ -136,8 +130,6 @@ const struct sched_class stop_sched_class = { .task_tick = task_tick_stop, - .get_rr_interval = get_rr_interval_stop, - .prio_changed = prio_changed_stop, .switched_to = switched_to_stop, .update_curr = update_curr_stop,