Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp296856pxm; Wed, 2 Mar 2022 15:44:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNVEprV8oBeRmSVwYHupGZ68usEbFcdP3ksh/meJ36eKCaHqM9jxStIrNxnqzj6yI2LTxJ X-Received: by 2002:a05:6a00:cd4:b0:4e1:bec9:efac with SMTP id b20-20020a056a000cd400b004e1bec9efacmr35123281pfv.63.1646264671053; Wed, 02 Mar 2022 15:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646264671; cv=none; d=google.com; s=arc-20160816; b=uWfesdAOSyEWO4aK+1D445Jl6QXQws1g4N8XZf/RtZwRkoM/1BXFvP6qKA42W9BavO XY3/6ZPizi77BeHVH5UAtJCkZgMvVSHIAqOECXtSw22t5T3hWaCAuTSmrYQq9/9RqD4C H3vbHVmpT5WSTdbbvEO34GJ7mOgPWK+y9+efjoQiIzcZJia0+Mf8UOJnsCcKQ5Luw46A /QGSpDQlSxdrtZLwGL8VGAV2NtGaNLRfWqPBR4OEqbcVVlY+muNV61FVdEYGWbb4kCX7 FDGuGFYME3jXhO49viDnFFSD/hLdPfh7K+b2KEn8AWfadTd2HqTqueiw/lYnSg/yLwlP V6+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8iIUPiEtm2cE5JyuJl/bBJcLN1LUhWuX5ZeeH2IbJIs=; b=Y1szr43JxjHt8k28sjU/g6G9tFKFfNwM9F5QS99vNCpbeBDlZxPd5d5+ixG72KaAfG 4n81LftFBn+7TZMwnz46oTx0hEKes3XQQHf3JZ666N3OJ8+vBqeoniQOoa6NgNExrWEE 9mAT7CXIJ4/DA3TYIJ9zBKRkxZ1L0aDMOKKA1iz20vSOYJAOYMFA2lCtglWjxFHPw+jv qou4LIV6cHTDajrcGvOGdJEikR82Sr/Oe9ohD0Y2759BmRG8E5BtRTryyHzck+1AylyR h48+Adwl8PIsxyD7lEWoZt7AAurlt1Aws5IsNvKpxCwJSX/0X2rLSfWRTRzxo5YGeWCq +4jg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b64-20020a633443000000b00379066d1124si437465pga.419.2022.03.02.15.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:44:31 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9AE566601; Wed, 2 Mar 2022 15:09:22 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244650AbiCBSfw (ORCPT + 99 others); Wed, 2 Mar 2022 13:35:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244643AbiCBSfs (ORCPT ); Wed, 2 Mar 2022 13:35:48 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27EC2D887C for ; Wed, 2 Mar 2022 10:35:04 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EA2761515; Wed, 2 Mar 2022 10:35:03 -0800 (PST) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5DAAD3F73D; Wed, 2 Mar 2022 10:35:01 -0800 (PST) From: Dietmar Eggemann To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Daniel Bristot de Oliveira Cc: Vincent Guittot , Mel Gorman , Ben Segall , Luca Abeni , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] sched/deadline,rt: Remove unused functions for !CONFIG_SMP Date: Wed, 2 Mar 2022 19:34:32 +0100 Message-Id: <20220302183433.333029-6-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220302183433.333029-1-dietmar.eggemann@arm.com> References: <20220302183433.333029-1-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 need_pull_[rt|dl]_task() and pull_[rt|dl]_task() functions are not used on a !CONFIG_SMP system. Remove them. Signed-off-by: Dietmar Eggemann --- kernel/sched/deadline.c | 9 --------- kernel/sched/rt.c | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 3242dd4972e1..93fcef57dd59 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -723,15 +723,6 @@ void dec_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq) { } -static inline bool need_pull_dl_task(struct rq *rq, struct task_struct *prev) -{ - return false; -} - -static inline void pull_dl_task(struct rq *rq) -{ -} - static inline void deadline_queue_push_tasks(struct rq *rq) { } diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 14f273c29518..b62e7652464b 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -271,8 +271,6 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent) #ifdef CONFIG_SMP -static void pull_rt_task(struct rq *this_rq); - static inline bool need_pull_rt_task(struct rq *rq, struct task_struct *prev) { /* Try to pull RT tasks here if we lower this rq's prio */ @@ -429,15 +427,6 @@ void dec_rt_migration(struct sched_rt_entity *rt_se, struct rt_rq *rt_rq) { } -static inline bool need_pull_rt_task(struct rq *rq, struct task_struct *prev) -{ - return false; -} - -static inline void pull_rt_task(struct rq *this_rq) -{ -} - static inline void rt_queue_push_tasks(struct rq *rq) { } -- 2.25.1