From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795982043; b=Lv6YpEcqNm+//Lor5ygn8OreQMuSw93Cm/xRl4ZVT0koA2HTCgdmv0OyrOtPifQQn+4n rA7t/P0iEU9I2i/g+put+c2j+YRnW94maaktZpY24GTxG/koHL47CgLikMZzvr8diS+0a N59cQI5J68HGi6s35WNxKEbfg7tkqOQNlGYJS/eg11Nh/xMQWiCg668rQNEyTtJZWb9Ym 8QK42IFaZO8dOAlaBdLhoKCWI4ehj2MJebEJ1eFhcogWwQVmitoWNYydiQdjnbVDCIzob 8TZT/nJErrOREpODAVzC0jmj/7H4XUNSxoTimHRZKOT2b9OlCSGRODox+V/DloTbxkg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795982043; h=DMARC-Filter:Received:Received:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=eMeMUpSC5s13K0FL4G4j2x8fr995xKNgGmkTppRHybs=; b=YoBoCWpJWVkjaC6g6QH0t/pAZfdws65yiAZoCQzf1aemImNBDiN1CjJSVFBSOH5xjdiz aQp8BnaMtgEZNwbsliRZoyaos+mmjaY0LXfSvjfKN3VN6YAosEB5vMNki4KY8Bm7O1xvI x2k4+gGx4jt4lTfJ3eSq1HHG3uDPps6SYXaH9H5tgODeiscd5z0SGHNo0hL8fByYCditk S78yQMtfXwpW9++NbjZzk5RpS7S7ojeu/y7dfyPFFFyezi7YxiLzFiL5nbhg609ZUTssg KyLktbypFG61TddNR55wbJZZr9STpy0ZM+BQyDBKMfMSCpAjS4tBFxbYLTRO9R66r4A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=G7KkPB24; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42EAC606A31C for ; Sun, 29 Nov 2026 19:54:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 42EAC606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=G7KkPB24 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 921BD1575; Sun, 29 Nov 2026 11:53:58 -0800 (PST) Received: from [10.57.71.175] (unknown [10.57.71.175]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2A4153F86F; Sun, 29 Nov 2026 11:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795982041; bh=kcPm2+dA52iLEJk5lHRERZNRDyjg1VLiNfh4j1XYhOk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=G7KkPB24csp2LQ2gi7v3HMuj0St0x3IRddLs8FeT9QYFFQef/WmSOGyGO4pzj6iyL XjDZAsLMRIxyuPrGDVsLWzPoiN21/lyLFh+gtqthLxn1/cF6Y50ETux4eSxflXBrh2 pOeMeqnqcHP0r39Z+0jfJBqOhFBCp6iZaptPF9z8= Message-ID: Date: Sun, 29 Nov 2026 19:53:57 +0000 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH] sched/fair: Skip PELT on !CONFIG_SMP To: Mehmet Fide Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , linux-kernel@vger.kernel.org References: <20261129193248.858301-1-mehmet.fide@gmail.com> From: Christian Loehle Content-Language: en-US In-Reply-To: <20261129193248.858301-1-mehmet.fide@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/29/26 19:32, Mehmet Fide wrote: > Hi Christian, > >> We can still use them for DVFS, i.e. schedutil, can't we? > > Not with CONFIG_SMP=n: CPU_FREQ_GOV_SCHEDUTIL still depends on SMP, so > such a kernel has no schedutil. If that dependency is dropped, the > skip would have to follow schedutil instead of SMP. Ah you're right of course. That being said that was because PELT didn't support UP back then while now it's probably just a matter of removing that Kconfig dependency AFAICT, if anything this probably should've been done with cac5cefbade9 ("sched/smp: Make SMP unconditional") Not that it actually achieves what you aim to do, rather the opposite. > >> Besides, the entire point of the commit was to get rid of the SMP ifdeffery >> and this is introducing them in a worse way. > > I went by the cover letter of the series, which asked for UP > improvements through "well-placed IS_ENABLED(CONFIG_SMP) kind of > toggles". If seven of them in fair.c are too many for 7-22 % on the > round trips of a UP board, is there a form you would accept? > You'll be glad to hear that I don't call the shots here ;) The feeling I get is that scheduler folks dream of dropping support for CONFIG_SMP=n altogether if there was a way that they could...