From patchwork Mon Oct 9 15:48:04 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: 150172 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1959062vqo; Mon, 9 Oct 2023 08:48:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5vQNL+oDVrZkCqkArD5a17Sk46x7Di4naCIl3CnoYYapIX+lomeR/C+pNS/pkaldvQqkd X-Received: by 2002:a05:6808:1b29:b0:3af:709c:1b2b with SMTP id bx41-20020a0568081b2900b003af709c1b2bmr20939917oib.32.1696866505922; Mon, 09 Oct 2023 08:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696866505; cv=none; d=google.com; s=arc-20160816; b=PBj/prH1rCywXkRcxtpDBFIXsFwsTjQh8eQ79yyIMfZsk7UzzJ0QzJNbRm5kc8k4mM rqkYdg5jxREOTGK8bWUcHgmk23Y7Tgo/oVO3B7ovBCHaKwNmG8Oeog5mOP95CZkQwx+j xwRyGZ4247E1DBBwDNmbPTckSFpQY4TqsWrzOiRREngJ8ETwgAUfF0gpUYA4FS407VF2 7KE7Le198qMlOX1uSqMfpPWHmffq6RkJEBs71fu9jElIphQ3M8TyuwIXYFosHPMkw4Rc tGIMrwW6fZANy5iJTPgVkAMBo6SZjYQlpyz6lzeIs9E3QVk4KTQ9WPvWEo58EKr3MJhK FpoQ== 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=j8RY9/oqlZ5AQToIicqBzl+juLEi2EMX3EhjVM/TL2c=; fh=wejOcP7cmHR59QGAwdOGBKkqnr7zBpwh/MvjTdQz2bM=; b=E4YtYomIPrQpW1PvYQGDhHw/Fu1mYJ1ZpwiAZ+EhTy3UuQP8nWy0c5Si31NxAXgohd MON/c/CTNHGxz3QHKahkefwn0egrXJ5NdICFJc/3feQ4zpE6fdDwJ3fKLWAYGO+D2n7S HHyejk7wZYzu7shn/RpxAzTVrbHeFZe02tnwuhrUhyas+RJHJBbaYSqqOJhmFx5A7Uif Pwa7nhIK6BoDuOnCqovM70r1uTdL/oxKHV49z9bY7prOOGKsFQPyreGu3d+w4zU159Zr rUhq80QjvJENYAkwxXe0+wKMIxfwV+iWNh4W+ZXNRYkNgPm6V4k1+ypsXVqeuAHLXB5y ARwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4RddHo4x; dkim=neutral (no key) header.i=@linutronix.de header.b=wCSzn3A6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id a26-20020a63705a000000b00578ea9a0b93si10420723pgn.890.2023.10.09.08.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4RddHo4x; dkim=neutral (no key) header.i=@linutronix.de header.b=wCSzn3A6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 23178810FBD7; Mon, 9 Oct 2023 08:48:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376948AbjJIPsJ (ORCPT + 18 others); Mon, 9 Oct 2023 11:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376463AbjJIPsI (ORCPT ); Mon, 9 Oct 2023 11:48:08 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3B519F; Mon, 9 Oct 2023 08:48:07 -0700 (PDT) Date: Mon, 09 Oct 2023 15:48:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696866485; 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=j8RY9/oqlZ5AQToIicqBzl+juLEi2EMX3EhjVM/TL2c=; b=4RddHo4x0ftAHJuclLAbluzoUNGJ+/LOEB3EfLg5hFv3z5WHmo+KdMmQSsXTWWoXXsT9Yv WeO1deGCYU9e2+ryJIkICbCwRWAWlFnpszN6IiFQ1B+Sark6dhhPC9IFgLN3hAKMKl++XG 73EZtipg5QKOXlFSDWBekmwfkA4aMrvnDImkpDJdOS9r/TCBrxt+Hz0q3/lA6bAsZdqjRH C9TVRvm/fVU8uRdhYzBgGjo5Zs9tMdjAsX98uTOwb2XiVpQyhnfh7PjmveKiC1cAhcqE1+ eu/+5dMbOXQLOjsE/2UvJB9Bm0XsJBVK29unHf9DuZf2nFg+kJRJj5e/20pTMA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696866485; 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=j8RY9/oqlZ5AQToIicqBzl+juLEi2EMX3EhjVM/TL2c=; b=wCSzn3A6JTASoogVgThL/BIY/JFD05Oq2mM9eji4Thmnj8q3aIXUdzyv1NAGY7D76k/p5m 8OIhmDub2mDasdCw== From: "tip-bot2 for Ingo Molnar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Move the declaration of 'schedutil_gov' to kernel/sched/sched.h Cc: Ingo Molnar , Shrikanth Hegde , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231009060037.170765-3-sshegde@linux.vnet.ibm.com> References: <20231009060037.170765-3-sshegde@linux.vnet.ibm.com> MIME-Version: 1.0 Message-ID: <169686648472.3135.10235202976466091036.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 08:48:23 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779293493347802488 X-GMAIL-MSGID: 1779293493347802488 The following commit has been merged into the sched/core branch of tip: Commit-ID: f2273f4e19e29f7d0be6a2393f18369cd1b496c8 Gitweb: https://git.kernel.org/tip/f2273f4e19e29f7d0be6a2393f18369cd1b496c8 Author: Ingo Molnar AuthorDate: Mon, 09 Oct 2023 17:31:26 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 09 Oct 2023 17:33:10 +02:00 sched/topology: Move the declaration of 'schedutil_gov' to kernel/sched/sched.h Move it out of the .c file into the shared scheduler-internal header file, to gain type-checking. Signed-off-by: Ingo Molnar Cc: Shrikanth Hegde Cc: Valentin Schneider Link: https://lore.kernel.org/r/20231009060037.170765-3-sshegde@linux.vnet.ibm.com --- kernel/sched/sched.h | 2 ++ kernel/sched/topology.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 7e7fedc..faf9031 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -3203,6 +3203,8 @@ static inline bool sched_energy_enabled(void) return static_branch_unlikely(&sched_energy_present); } +extern struct cpufreq_governor schedutil_gov; + #else /* ! (CONFIG_ENERGY_MODEL && CONFIG_CPU_FREQ_GOV_SCHEDUTIL) */ #define perf_domain_span(pd) NULL diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 4cbbdac..d950861 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -212,7 +212,6 @@ static unsigned int sysctl_sched_energy_aware = 1; static DEFINE_MUTEX(sched_energy_mutex); static bool sched_energy_update; -extern struct cpufreq_governor schedutil_gov; static bool sched_is_eas_possible(const struct cpumask *cpu_mask) { bool any_asym_capacity = false;