Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1356433ybj; Thu, 7 May 2020 22:38:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLeoB+gmnAm2kcFO69Ac5+hmgGBDr47mrfQjhikL2jersQk8o+piQn3+T2lZLya6Ka/mGMK X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr784006edw.17.1588916285306; Thu, 07 May 2020 22:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588916285; cv=none; d=google.com; s=arc-20160816; b=fhlY45hw6Vnb3kp0Il2mq4NvSvWqwgGxE0bffIUfPvfGXw//I72kTgpOggySeQquae aPRYZJTqx0YigFDAxdn+yzVvxOfdxEUCD1FX/muEyLKxvhcJrbk4BkY0mjU55tnoaT9K Q2IqLPt6uHwTfHBRdpNLQNLmh9sOIbW+qkuQhoJVAChQchPyIHklOtCj46p2/+GYWv9I w7EjgT+J8nSQgfhef1BwhYMXfqDOFWo+N25PXPVj3mb0TaoRZ7uT3RTHmrAOobdQKG4H VEbatSwwErUF+ttodDqE6OvCMeG3Xy2rSP0otRNozJaUyLFa/eyc2YV6z/hJCzu5Lf7o cG/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ek85+5EOYLMSUNDa2pk81mbaX6vTrFpa0o8AoGuV9zA=; b=OPSTxIzp/YX75sBYht/0T+JmuGtyu0HO78B4jCmMMVhe2sTOJDz1y7+pjeaR0u3jBT x4nbKp6IdIvE0IBYzxX7ZOmFoHavhFeHfcYGJ/LL1rxaRx4LCQwQXfAKr3BoLsFfNIw2 RmvH+NQLZnvN2SytipNpcdXTErlqWWfYQD1hrAHf7YWOeGBA6WvIZSO5XBsiiSls/F4f PSWkTkqTmqiRnA9/HIShNFTuT8rET/IFmsP9t93pFNBK72rDX7eO3YjWvwUYr1Z7DUER WM1ZfMc1s0qpzEva2rkwx+w/c1HW+ud3+kOjR9mBCi1U27/06XyLmiw0zVmsc6ewd7uL 5OYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N73uucdq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox5si314208ejb.530.2020.05.07.22.37.42; Thu, 07 May 2020 22:38:05 -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; dkim=pass header.i=@linaro.org header.s=google header.b=N73uucdq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726091AbgEHFeE (ORCPT + 99 others); Fri, 8 May 2020 01:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbgEHFeD (ORCPT ); Fri, 8 May 2020 01:34:03 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E297C05BD09 for ; Thu, 7 May 2020 22:34:02 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id l25so356788pgc.5 for ; Thu, 07 May 2020 22:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ek85+5EOYLMSUNDa2pk81mbaX6vTrFpa0o8AoGuV9zA=; b=N73uucdqyUPlc2R76m0kX5oIw8VwOcGlpjiOR17583QDP5OzJzReJ5AM/Z4MXMu44n tf/L2XGF3JhG8xLpjuA46jEKBAcCLTQGTGn6Sst8YZpO37cgPhPGwvpD/KWWDtwJMchT yafjsM1HCnPahw3QPaj0JdouQoLw0+qs2b287bxqogw5fwlUeT16lfoaTqdheM8O2lfC WZZSAqtXNgLBxE9B4Md1wdWZqyrhTNrOy+lK1tGjtTBMrhPkCQEGZiK7VVmt90ay1z8O FYTIHycL6nkKdiolwlm08Ix8FmVc7lrji14z5IAfq84Vo8tD6Z/pyIsKJwfGnt3ObXiz EW1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ek85+5EOYLMSUNDa2pk81mbaX6vTrFpa0o8AoGuV9zA=; b=GLQF6sr8gg1lIPAlqucY4/czNKa2bbm8EYz7PtgSFhX/ucH5dylmaflrpDGCDf/b+j 5/zAAMuBKYojIfSJ8TEtXflmXrvVWhWfL2Xd77eYhQj3Gw8+qSQpj7gw0FuQOB6Vzu1w zQgQ+wSiXrZhP0wWxTFMk0sho5bRnTvCBCiqBWH+OosspIzbZK9Cgxv3HNtWX61jpIcc /jm1TkLCzg84sLtYEv/I2jFV3n686vQ/If1jI08L3/+DrRhYcXOO4QLHqE0qrr8Fh9lz 8NEtUe5QueHKAnLbZJsqp2GGiwSa+3Vaf4S4Hnam6gBCY4bDTto973rz6a0Sax6dpTVh c6PQ== X-Gm-Message-State: AGi0PuamPLu2gE8RUbHenLP9WqmgNgGr7XXcfw8QveGd3sMGDrm8p5oD Z69GKbEEBSK4UB1eOdnhtDQGqw== X-Received: by 2002:a63:8e49:: with SMTP id k70mr732060pge.73.1588916041742; Thu, 07 May 2020 22:34:01 -0700 (PDT) Received: from localhost ([122.171.118.46]) by smtp.gmail.com with ESMTPSA id cv21sm1383514pjb.23.2020.05.07.22.34.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2020 22:34:00 -0700 (PDT) Date: Fri, 8 May 2020 11:03:59 +0530 From: Viresh Kumar To: Quentin Perret Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, sudeep.holla@arm.com, gregkh@linuxfoundation.org, rafael@kernel.org, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com, fweisbec@gmail.com, tkjos@google.com, kernel-team@android.com Subject: Re: [PATCH 00/14] Modularize schedutil Message-ID: <20200508053359.ul5dbws6vkpdrbef@vireshk-i7> References: <20200507181012.29791-1-qperret@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507181012.29791-1-qperret@google.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-05-20, 19:09, Quentin Perret wrote: > Android is trying very hard to use a single kernel image (commonly > called Generic Kernel Image, or GKI), closely aligned with mainline, to > run on all Android devices regardless of the vendor. > > The GKI project intends to not only improve the status quo for Android > users directly (less fragmentation simplifies updatability), but also > to benefit upstream by forcing all vendors to agree on one common > kernel, that we push hard to be aligned with mainline. > > One challenge to implement GKI is to avoid bloating the kernel by > compiling too many things in, especially given that different devices > need different things. As such, anything that can be turned into a > module helps GKI, by offering an alternative to having that component > built-in. This is true for pretty much anything that can be made > modular, including drivers as well as other kernel components, such as > CPUFreq governors. > > Indeed, in practice, Android devices often ship with only one CPUFreq > governor enabled, and don't require any other that would simply waste > memory for no benefits. All CPUFreq governors can already be built as > modules with one notable exception: schedutil. Though popular in > Android, some devices do not use schedutil, which is why it would be > preferable to not have it unconditionally built in GKI. This series is > an attempt to solve this problem, by making schedutil tristate. > > While modularization is usually not something we want to see near the > scheduler, it appeared to me as I wrote those patches that the > particular case of schedutil was actually not too bad to implement. > We already have to support switching governors at run-time, simply > because userspace is free to do that, so the infrastructure for turning > sugov on and off dynamically is already there. Loading the code a little > later doesn't seem to make that a lot worse. > > Patches 01-05 refactor some code to break the few dependencies on > schedutil being builtin (notably EAS). Patches 06-12 export various > symbols that schedutil needs when compiled as a module. And finally, > patches 13-14 finish off the work by making the Kconfig tristate. IMHO, you have over-broken the patches, like first two could be merged together and all exports could have been done in a single patch, etc. i.e. all related or similar changes together... Acked-by: Viresh Kumar -- viresh