Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5160054rwd; Tue, 23 May 2023 19:44:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/x5FxT2hq/s7kFB6aIdRgjxhjHTE2tMMzcKHWcNcK4WfBVkoyqbpQz8nDVlZoOvUPqKqg X-Received: by 2002:a05:6a20:1454:b0:106:ff3c:be9c with SMTP id a20-20020a056a20145400b00106ff3cbe9cmr18950942pzi.43.1684896261234; Tue, 23 May 2023 19:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684896261; cv=none; d=google.com; s=arc-20160816; b=XQEzwiWby5vv8a/r44Z2WsIi8/xc4i27GDNs/oXAN9FTmFXfpgwl0tnOhAppXzq2vq haLsFlVZz0hc/nwNZJy5XrewPJMmEkVOjBJqUzcgqDBgmtVQKBCfXD2boAYfsWdZ54+A KWtaY3Dm3y0/0gsOQ5bz6GoQoyt+6IZRWvzWIutfDCWFNJK8B2Ts7e0qR0vko33EM+zT sDTC2dEUNzB9QqHMqq1wnBfHgcnGqoKs77gVokitdH1gmG1QgVpW/LrHXv+3wT/MEIBD FaflL2hhY81p+E4Qj2gW9j2c9UQTQdaOM81YXlbmI55llgNeeh143wd4n2HLxXh3BF8M uANQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lYkb0pS5odQMOuwhoTPYgh2JEYk8N9cz1JSulT+dfOM=; b=tzFTzW++ZoolY3rRevkvQKF747tHxc/BcNC8Mfz+Zx8cTSihWwyUC2kntwksqXnbm4 PLwcwWGVHz1b1k8XXAHQilJ+5WbrkDXaTtCGqQGpvsK8g64U/Sn17AOGwifVzT05jktX USLoYFcmttnOrWFBdsmY9xSoqF0hvk5QnVzvv0ides45yrcQYPMbAktQ4OWUPTO3zf1k Gwz5WX659Bj47daaXUJMF2joGWPEozB7QuLW8LnGqOq0M0QU/lBiOGk2WFquonyfwWm+ RuOWDK0CpYrS4ZjLwhbPNUgNlKFwjlIlX2UcdKQaNCjtfgTtcQnFriPrby/8bJinwxUy 4eOg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a633406000000b0053efcd20010si1275026pga.423.2023.05.23.19.44.05; Tue, 23 May 2023 19:44:21 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238906AbjEXCd4 (ORCPT + 99 others); Tue, 23 May 2023 22:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233493AbjEXCdz (ORCPT ); Tue, 23 May 2023 22:33:55 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D11FE6 for ; Tue, 23 May 2023 19:33:53 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4QQwFM4H6ZzLmGj; Wed, 24 May 2023 10:32:23 +0800 (CST) Received: from huawei.com (10.175.104.170) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 24 May 2023 10:33:50 +0800 From: Miaohe Lin To: , , , CC: , , , , , , , Subject: [PATCH] sched/deadline: remove unused dl_bandwidth Date: Wed, 24 May 2023 18:25:14 +0800 Message-ID: <20230524102514.407486-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.170] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 --- 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 fe983ed7bb12..7c98ca1f7300 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -482,13 +482,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 1704763897d0..d79f4fd53600 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); -- 2.27.0