Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6903045ybf; Fri, 6 Mar 2020 06:45:08 -0800 (PST) X-Google-Smtp-Source: ADFU+vuwv5t3Bf4B8zTMs4puWw+6yFdwt7MwS4BDMklIVLgTNRDyW7z9zdkOlnqNm7E8BSA6kEma X-Received: by 2002:aca:4e58:: with SMTP id c85mr2920214oib.115.1583505908781; Fri, 06 Mar 2020 06:45:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583505908; cv=none; d=google.com; s=arc-20160816; b=kWcIn7IVQbrV9wva5FqJ/LdhGPdN4yySaLydPDGxoERRczACQvSFE1P8luFpY8/Vm9 5DQQ2pDN9cr8cYOO1bfTGpkzwfPoM8bcSQU1lgD1PJJNtZ1zo5WwVG00NLd53nlnM3VH 8wC20hjJHhzViDxqE/rD/DSBMz31ZZ20sQ7WKXjLO8TanbMBteardbo5OHH4Pzi+M1l+ QQlQvsTWQFzUAbZgwEXwEaYQpXlQvPYQSM0SZA9voYh6zNWEJXiKyKvrxNyDKiTsvhxJ BCFlf/HeDrGaxC40I/V1tLjCRxd92yDJZz3Ew3ULwO80A7NE/b4c4vTRJkm6BVuCSQpd cW5A== 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=eXYJiwoGv8xfinNHbj5U0yhv23uwZ3majyKXQOIUrxg=; b=aMgJu5yOz77mPo0ekecPtXsG7OycdNRSkvB453ir4Uq0AHy4w/eCZDXznjuG//tqj6 6kptjUEgeu13IdC/0acLvL1uQuhV5P9MIt3sp+pyxsDWZg0E+eWRbSrTOT20NfNBMKxh wVEdeahaKYmwMlTIVI0DH3Vs5BPsJdbUi+4KMV9/fJ0IU7HrGBxEhKnCVmXiMFFNm8Ky kz1xWFuIzVXRPfhfPBCpmFGLIymlS+NaZz5ZpovxranuqtBrBG3dwe99ELKtL2ICnS7r ubq2CQliJlqYD6/KUvQuPBhZ5WddLBhQey6ZyktUyuS90TeG8dPwitdvR93ko/N/Dwrw 35eA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si1446236oiv.143.2020.03.06.06.44.57; Fri, 06 Mar 2020 06:45:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727516AbgCFOnK (ORCPT + 99 others); Fri, 6 Mar 2020 09:43:10 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:53845 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727234AbgCFOmW (ORCPT ); Fri, 6 Mar 2020 09:42:22 -0500 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 1jAEAz-0006JQ-Ds; Fri, 06 Mar 2020 15:42:09 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 91C5D1C21D9; Fri, 6 Mar 2020 15:42:06 +0100 (CET) Date: Fri, 06 Mar 2020 14:42:06 -0000 From: "tip-bot2 for Yu Chen" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/deadline: Make two functions static Cc: Yu Chen , "Peter Zijlstra (Intel)" , Ingo Molnar , x86 , LKML In-Reply-To: <20200228100329.16927-1-chen.yu@easystack.cn> References: <20200228100329.16927-1-chen.yu@easystack.cn> MIME-Version: 1.0 Message-ID: <158350572628.28353.5626371504382178233.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: ba4f7bc1dee318a0fd9c0e3bd46227aca21ac2f2 Gitweb: https://git.kernel.org/tip/ba4f7bc1dee318a0fd9c0e3bd46227aca21ac2f2 Author: Yu Chen AuthorDate: Fri, 28 Feb 2020 18:03:29 +08:00 Committer: Ingo Molnar CommitterDate: Fri, 06 Mar 2020 12:57:24 +01:00 sched/deadline: Make two functions static Since commit 06a76fe08d4 ("sched/deadline: Move DL related code from sched/core.c to sched/deadline.c"), DL related code moved to deadline.c. Make the following two functions static since they're only used in deadline.c: dl_change_utilization() init_dl_rq_bw_ratio() Signed-off-by: Yu Chen Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Link: https://lkml.kernel.org/r/20200228100329.16927-1-chen.yu@easystack.cn --- kernel/sched/deadline.c | 6 ++++-- kernel/sched/sched.h | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 43323f8..504d2f5 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -153,7 +153,7 @@ void sub_running_bw(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq) __sub_running_bw(dl_se->dl_bw, dl_rq); } -void dl_change_utilization(struct task_struct *p, u64 new_bw) +static void dl_change_utilization(struct task_struct *p, u64 new_bw) { struct rq *rq; @@ -334,6 +334,8 @@ static inline int is_leftmost(struct task_struct *p, struct dl_rq *dl_rq) return dl_rq->root.rb_leftmost == &dl_se->rb_node; } +static void init_dl_rq_bw_ratio(struct dl_rq *dl_rq); + void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) { raw_spin_lock_init(&dl_b->dl_runtime_lock); @@ -2496,7 +2498,7 @@ int sched_dl_global_validate(void) return ret; } -void init_dl_rq_bw_ratio(struct dl_rq *dl_rq) +static void init_dl_rq_bw_ratio(struct dl_rq *dl_rq) { if (global_rt_runtime() == RUNTIME_INF) { dl_rq->bw_ratio = 1 << RATIO_SHIFT; diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 7f1a85b..9e173fa 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -305,7 +305,6 @@ bool __dl_overflow(struct dl_bw *dl_b, int cpus, u64 old_bw, u64 new_bw) dl_b->bw * cpus < dl_b->total_bw - old_bw + new_bw; } -extern void dl_change_utilization(struct task_struct *p, u64 new_bw); extern void init_dl_bw(struct dl_bw *dl_b); extern int sched_dl_global_validate(void); extern void sched_dl_do_global(void); @@ -1905,7 +1904,6 @@ extern struct dl_bandwidth def_dl_bandwidth; extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime); extern void init_dl_task_timer(struct sched_dl_entity *dl_se); extern void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se); -extern void init_dl_rq_bw_ratio(struct dl_rq *dl_rq); #define BW_SHIFT 20 #define BW_UNIT (1 << BW_SHIFT)