From patchwork Wed May 31 12:04:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 101393 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2826825vqr; Wed, 31 May 2023 05:07:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HAQ0aotjUmtc5pBZbqQkNacyfJqcIHcy9N6yKgMk83LQ/swzAOyjce3W9ASohlzKCxIR5 X-Received: by 2002:a05:6a21:9982:b0:10c:8e0f:7b1b with SMTP id ve2-20020a056a21998200b0010c8e0f7b1bmr4753412pzb.59.1685534865059; Wed, 31 May 2023 05:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685534865; cv=none; d=google.com; s=arc-20160816; b=dTMczjZR4mF/YiHCMEbvTTQAIrsJ8GgXT7TBOl/XPXYvJgQ1AY/RwCM3FORWpcqZ3W bb/tNlF8roV29h/15op3z8MtA43JNMH6lyNBvj0iGGNDMnnvZYSN6PRa6aDUaALXkZgm t5tieeqWe58XwzHb9ziKWX7EHYFPCrhgjZb/xNGT1nGd3jagBd8z85e4o1TA/L5oQCTG GwRpdNITkrIK9yJ/3Ar1+QKy0N0pMbBKPdQ5j7setVTegTsea/D1DdOdDv8uzM1bbhBV VMVF4L5viHAh5O96E9B2f/bGb5WUKvV2lvvHUb7j7az/hy81Ou1+rBBhu+0HszK8kcUa MkpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=vuqkZobSgHIHglDkY+euou/mzGOOirg20B5cXN0jJ+4=; b=XdBzN9ZOwg76obsI6RCopTLDDtBSNCDiJ/H2tTidgfYnqUa39TLL1UDuBtf8ERwwXd doy6Ev3FGeQMZIOQuvsFgcg5XOcvZ85AAKSQLZIatbMDTNEW0Vpjg3UW1xowc03sPo1z DWU4BzZv4ZtR0Zz6cyaFWVxvvdR8fgjO1+WcERmdUGh0XrcDIWNMx9Jxl1ThzXVUcTn6 rKVhp2luSbx3KsfelkC37stJS9j35e/lSJ5VMUhyibGT1fj4NvrW1ZgiXBHhI/nn65Yz 2rLJBeuZ8r/vCHvgkZQyG6xzpJjtnXJFu2BOCbyP64X4AUy6YXPPpPjfRnh/xaBqgPSM 2zvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="LTxEda//"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i189-20020a6387c6000000b0053073c1b986si916954pge.28.2023.05.31.05.07.29; Wed, 31 May 2023 05:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="LTxEda//"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235822AbjEaME5 (ORCPT + 99 others); Wed, 31 May 2023 08:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235386AbjEaMEv (ORCPT ); Wed, 31 May 2023 08:04:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDD1310B; Wed, 31 May 2023 05:04:49 -0700 (PDT) Date: Wed, 31 May 2023 12:04:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685534688; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vuqkZobSgHIHglDkY+euou/mzGOOirg20B5cXN0jJ+4=; b=LTxEda//z9UXe3+WCw7hUrMJ5zbPoX+UCmgkO3USRcPf34TYUJBPSEsLur9CA41z4LIXZw 1aGNrR6ea8fSHZn1q5gQoAoc3zj9TSa7Dz2CW7yTDtstXwZVVk5kpz7FhxezrfvMbYbxow KiNXmoEICbli0AGkXEPonV8co6UnhxnofeRevXsaKfensDLSLDJWp1a9bnThAl3D2bMjYj Ba3bWFGXcjYMghuy5U5G55CcNm4TbEGyE+ny/WxS2vp0V345yfQ2CcEGPKyhunmxITa1F/ DANeB0Ps+S7pKo01C/EvA/DcfQYUL4CYigjkSBPT3XAI6EKYvBCMZgbzDV1pzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685534688; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vuqkZobSgHIHglDkY+euou/mzGOOirg20B5cXN0jJ+4=; b=UZN+Xir1hVSjhTswmo1wqX3tcGlQxViQmAUnQY9T4ndZWOknPrpqF5kkn3FcYkoos/xT94 suS73PBity6vbFCA== From: "tip-bot2 for Miaohe Lin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/deadline: remove unused dl_bandwidth Cc: Miaohe Lin , "Peter Zijlstra (Intel)" , Juri Lelli , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230524102514.407486-1-linmiaohe@huawei.com> References: <20230524102514.407486-1-linmiaohe@huawei.com> MIME-Version: 1.0 Message-ID: <168553468812.404.16437578033424915162.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766741461833640044?= X-GMAIL-MSGID: =?utf-8?q?1767411406568560219?= The following commit has been merged into the sched/core branch of tip: Commit-ID: 3f4bf7aa315bf55b2a569bf77f61ff81c7e11fc1 Gitweb: https://git.kernel.org/tip/3f4bf7aa315bf55b2a569bf77f61ff81c7e11fc1 Author: Miaohe Lin AuthorDate: Wed, 24 May 2023 18:25:14 +08:00 Committer: Peter Zijlstra CommitterDate: Tue, 30 May 2023 22:46:26 +02:00 sched/deadline: remove unused dl_bandwidth The default deadline bandwidth control structure has been removed since commit eb77cf1c151c ("sched/deadline: Remove unused def_dl_bandwidth") leading to unused init_dl_bandwidth() and struct dl_bandwidth. Remove them to clean up the code. Signed-off-by: Miaohe Lin Signed-off-by: Peter Zijlstra (Intel) Acked-by: Juri Lelli Link: https://lore.kernel.org/r/20230524102514.407486-1-linmiaohe@huawei.com --- kernel/sched/deadline.c | 7 ------- kernel/sched/sched.h | 7 ------- 2 files changed, 14 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 5a9a4b8..f827067 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -489,13 +489,6 @@ static inline int is_leftmost(struct task_struct *p, struct dl_rq *dl_rq) 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); - dl_b->dl_period = period; - dl_b->dl_runtime = runtime; -} - void init_dl_bw(struct dl_bw *dl_b) { raw_spin_lock_init(&dl_b->lock); diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 6784462..d8ba81c 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -286,12 +286,6 @@ struct rt_bandwidth { void __dl_clear_params(struct task_struct *p); -struct dl_bandwidth { - raw_spinlock_t dl_runtime_lock; - u64 dl_runtime; - u64 dl_period; -}; - static inline int dl_bandwidth_enabled(void) { return sysctl_sched_rt_runtime >= 0; @@ -2394,7 +2388,6 @@ extern struct rt_bandwidth def_rt_bandwidth; extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime); extern bool sched_rt_bandwidth_account(struct rt_rq *rt_rq); -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);