Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3073194pxk; Mon, 7 Sep 2020 02:19:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEG7wLVmj7+goVFuyhLeq+wJBSIe5RXGkvFh9+J0a9NWWKIs6QiKrsTm3JCNh1F5pvORDq X-Received: by 2002:a05:6402:b06:: with SMTP id bm6mr12904646edb.15.1599470368165; Mon, 07 Sep 2020 02:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599470368; cv=none; d=google.com; s=arc-20160816; b=AUyH1XavSk0baBvZfVadFQOMqZX0W/dpDjCeI/HRqDKdDQjjJiQmIKsxLrJpzLwc+0 GLmNVZydETw9yGCnA6Kh/VB2pFRiYpQNr244on8zVl/OadN13h36sG0A0tL30krd+HuG HwYMHO/3+OgLtVK846Htk91Ia0RHlB/+z1ykowjnl0MDtWDo4wDMwgrkW0jowfXwMxbp 5//sAFQ7D/Fb52shZ2FD20RTzH9kqs9nkQKmuTI/Findyd1rvj3vlJaxldWYwD00V4vm KRDzmOQY98Qe5DA/LwfHtmdAHq5Z/CXzsnbG5yb+LcWCsG43vcZn3QBEowUBPUtcIsj+ j6Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=AVdAf3epHjAeDQ5O4UuunuaMxGAc9qStDb/dBI+gpB0=; b=J5r+SVrKgj/zkaa9pL2cGxRb6VIUoNRLt4lRbVgfCsW4xG4EuHgfa/MDpjWlKOV4nG j7tEbEDQrMmlo3/zKi6Y4gF2Jj0iwpEJ5C5XsfS8udmRm+6F/ORtG9/dNyWfUc2HhNaY bmLsW7yA8PGn+iWTbqSDzTDDH/ey6o0F7XNopEAA+ojn2M5d9lG/mNRsytBlXzK2A7lY /caqxXuJd74R/aZeePcBoeKWGV/3MacQ4IkFIBY2GFqRuQMDVD+Me0LzCh5H8JTfQyCL 2nhlopI+bd3vlK58Ix0NqjjAIMX6QldYqI5I9KKV/zR+/IhvC1ROhNb0bpZ/Tq636GNF /5+A== 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 gj23si2581812ejb.419.2020.09.07.02.19.05; Mon, 07 Sep 2020 02:19:28 -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 S1728345AbgIGJRg (ORCPT + 99 others); Mon, 7 Sep 2020 05:17:36 -0400 Received: from foss.arm.com ([217.140.110.172]:58380 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728300AbgIGJR1 (ORCPT ); Mon, 7 Sep 2020 05:17:27 -0400 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 9A5FA11B3; Mon, 7 Sep 2020 02:17:26 -0700 (PDT) Received: from dell3630.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 47C2A3F66E; Mon, 7 Sep 2020 02:17:25 -0700 (PDT) From: Dietmar Eggemann To: Peter Zijlstra , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Vincent Guittot , Steven Rostedt , Qais Yousef , Phil Auld , Vincent Donnefort Subject: [PATCH 2/3] sched/fair: Remove cfs_rq_tg_path() Date: Mon, 7 Sep 2020 11:17:16 +0200 Message-Id: <20200907091717.26116-3-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907091717.26116-1-dietmar.eggemann@arm.com> References: <20200907091717.26116-1-dietmar.eggemann@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cfs_rq_tg_path() is used by a tracepoint-to traceevent (tp-2-te) converter to format the path of a taskgroup or autogroup respectively. It doesn't have any in-kernel users after the removal of the sched_trace_cfs_rq_path() helper function. cfs_rq_tg_path() can be coded in a tp-2-te converter. Remove it from kernel/sched/fair.c. Signed-off-by: Dietmar Eggemann --- kernel/sched/fair.c | 19 ------------------- kernel/sched/sched.h | 3 --- 2 files changed, 22 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f7640af1dcaa..7b9b5ed3c506 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -285,19 +285,6 @@ static inline struct cfs_rq *group_cfs_rq(struct sched_entity *grp) return grp->my_q; } -static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) -{ - if (!path) - return; - - if (cfs_rq && task_group_is_autogroup(cfs_rq->tg)) - autogroup_path(cfs_rq->tg, path, len); - else if (cfs_rq && cfs_rq->tg->css.cgroup) - cgroup_path(cfs_rq->tg->css.cgroup, path, len); - else - strlcpy(path, "(null)", len); -} - static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq) { struct rq *rq = rq_of(cfs_rq); @@ -472,12 +459,6 @@ static inline struct cfs_rq *group_cfs_rq(struct sched_entity *grp) return NULL; } -static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) -{ - if (path) - strlcpy(path, "(null)", len); -} - static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq) { return true; diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 28709f6b0975..5f2e9b396161 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -730,7 +730,6 @@ static inline long se_runnable(struct sched_entity *se) else return se->runnable_weight; } - #else #define entity_is_task(se) 1 @@ -1579,7 +1578,6 @@ static inline void set_task_rq(struct task_struct *p, unsigned int cpu) p->rt.parent = tg->rt_se[cpu]; #endif } - #else /* CONFIG_CGROUP_SCHED */ static inline void set_task_rq(struct task_struct *p, unsigned int cpu) { } @@ -1587,7 +1585,6 @@ static inline struct task_group *task_group(struct task_struct *p) { return NULL; } - #endif /* CONFIG_CGROUP_SCHED */ static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu) -- 2.17.1