From patchwork Wed Sep 11 22:32:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 173645 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1341539ilq; Wed, 11 Sep 2019 15:32:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpbzQ39XLPm1jL8mLOoukuIaExpBPZh1D/pkjOC0DsoHk0uxNPvnxvc4o8LU9vjKxMbbip X-Received: by 2002:a50:981b:: with SMTP id g27mr39012152edb.105.1568241169246; Wed, 11 Sep 2019 15:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568241169; cv=none; d=google.com; s=arc-20160816; b=uDU3heFp6uqo6txSffrBOtgdOcDCiP+c8h1arzh+olP0q7U+Dxr5BvlG3PaO397qzK Z89qpP6EFs5ljZxV3TCeX+RTN0Hw18kC4dZuIY8rkmv3BXuUw2oUOLiqGqiAHCK6ci1U myZmTHzHadCSopYlSRAOVHkf/QHdbfge8aoKnunl6IgeMgOQRnTHhdrYABu4SbIodcR0 4ndrI7brSjJki05dXFjl1yTaHmBR/pv1fWWyKFPLtZX2d0/vMV7L5if3E2dX/1mycL/x zj426vcrq+nPtgCxUJmR+QAo/AHy/6ZXqN7m7AAZywyKX49BFIWNs4nMVxCtIQqHR3gs PRug== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=OSYcY8IBbPXHFII/5CsrnXT8+IaVG+jk8Oh4t4Zn6xA=; b=hbJSCIftZrfjf1W/fdQFx2hrge21o68ON2ld6Gb3KeRU3D2bHV9UqAdFpEwfEj75Y6 L1Cx3SyyJnXWzbrWRWk1qgDyktMqannCqK97pzgpdVDOrcQ++jdB2oIzXULcB1mhlHQ9 3IpYG2+HOLym/nz1GV6aVdaEp7tDpFimn7SzP17Qf+Q8qkvE5Yz0uAi9zq2IDONdYQ8k ak+fvVyvFGzsxeDx8trYPLsSc3ZP3ThUnwZyUfQ8tTBYb9pGPNEtDaPqSucGS/svOQuq fylZnyqOi77BmjfSUOV/Zar+3MiiLVlx0KjjMP7NHzMfmnfXFd0OyLtIoe4YH08NvVsb MN/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o/hNxA2g"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [209.132.180.67]) by mx.google.com with ESMTP id qq22si12042300ejb.288.2019.09.11.15.32.49; Wed, 11 Sep 2019 15:32:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o/hNxA2g"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1728819AbfIKWcs (ORCPT + 15 others); Wed, 11 Sep 2019 18:32:48 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44921 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728808AbfIKWcs (ORCPT ); Wed, 11 Sep 2019 18:32:48 -0400 Received: by mail-pl1-f194.google.com with SMTP id k1so10794328pls.11 for ; Wed, 11 Sep 2019 15:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=OSYcY8IBbPXHFII/5CsrnXT8+IaVG+jk8Oh4t4Zn6xA=; b=o/hNxA2gr0vDUeX9kntmZsI+c644sUOFOjeuCT21i22ln2dgMqCeD+ac/azR80Ssz1 FeA575pCuqYEFUSjPfrcnwZ2dY+6oq8PyzemYUloMch5Qsw7ZJKxtaEPMaRLZi1yacCh dwCK84LSrzklc9yE0pL3xJawW8MODGsnOCLi07pY4uM53SKgRSvuXqnMtwfhgJZk4Jxj P0aNX8We7coIMq3hfcxnM7tef1PTGpkgpeOUycGITRBuG/Zq3MsfCHWrriPK+TuIY4u0 F+L/B7RfsqFnS7zRnnPWV40L4TgtLk7vMsnVXcnsg7uzoXeMmD41j3ZfC3BYib3uB7Mn acNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=OSYcY8IBbPXHFII/5CsrnXT8+IaVG+jk8Oh4t4Zn6xA=; b=PdWakx+5SSzAi+2sUVYoynG2SEBp4l10ZrMUJaKPqagvh9jZHg/qGCeKhUfGQD8UcD RZCjhC1q8HtXDmRC6hDrCzPYE8glwg0pB44Tkvzgh9M7fgq83zCF4oQ0jExatJQlIRsh 8oswXsvQCb0pO4t1jXoks9RAKsflSHecqhomHqTZhpcS9J0Q0bGg1IWmidjjNJZ1jS/N PHSJ/lWvbOUhzD2A5K9T8lTDyFS/iBuY+lApoWANUDzIrMLHupJUdGiffY+VAc57LVoH ZyIOy3UYhURD7C8uh2EWpwsY3n/Xk0ZH1jH0xkUkDX+fISLtxTUNl2XRi3xc5nUh46Ac 8rhg== X-Gm-Message-State: APjAAAUTX6ZLSNNsGqpsY71z6tL3Ey9VOIcf3bX1xZjMfYduO2/9DDYm rAcCXdhsQdFQphkIVSFnozs0sw== X-Received: by 2002:a17:902:7792:: with SMTP id o18mr37634234pll.73.1568241167291; Wed, 11 Sep 2019 15:32:47 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id v5sm22415190pfv.76.2019.09.11.15.32.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:32:46 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, "Rafael J. Wysocki" , Daniel Lezcano , Viresh Kumar , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH 2/5] cpufreq: Initialise the governors in core_initcall Date: Thu, 12 Sep 2019 04:02:31 +0530 Message-Id: <6ac50a647b8b9ee4af70a33fab10bb5df4a6b5ff.1568240476.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Initialise the cpufreq governors earlier to allow for earlier performance control during the boot process. Signed-off-by: Amit Kucheria --- drivers/cpufreq/cpufreq_conservative.c | 2 +- drivers/cpufreq/cpufreq_ondemand.c | 2 +- drivers/cpufreq/cpufreq_performance.c | 2 +- drivers/cpufreq/cpufreq_powersave.c | 2 +- drivers/cpufreq/cpufreq_userspace.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index b66e81c06a57..737ff3b9c2c0 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -346,7 +346,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return CPU_FREQ_GOV_CONSERVATIVE; } -fs_initcall(cpufreq_gov_dbs_init); +core_initcall(cpufreq_gov_dbs_init); #else module_init(cpufreq_gov_dbs_init); #endif diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index dced033875bf..82a4d37ddecb 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -483,7 +483,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return CPU_FREQ_GOV_ONDEMAND; } -fs_initcall(cpufreq_gov_dbs_init); +core_initcall(cpufreq_gov_dbs_init); #else module_init(cpufreq_gov_dbs_init); #endif diff --git a/drivers/cpufreq/cpufreq_performance.c b/drivers/cpufreq/cpufreq_performance.c index aaa04dfcacd9..def9afe0f5b8 100644 --- a/drivers/cpufreq/cpufreq_performance.c +++ b/drivers/cpufreq/cpufreq_performance.c @@ -50,5 +50,5 @@ MODULE_AUTHOR("Dominik Brodowski "); MODULE_DESCRIPTION("CPUfreq policy governor 'performance'"); MODULE_LICENSE("GPL"); -fs_initcall(cpufreq_gov_performance_init); +core_initcall(cpufreq_gov_performance_init); module_exit(cpufreq_gov_performance_exit); diff --git a/drivers/cpufreq/cpufreq_powersave.c b/drivers/cpufreq/cpufreq_powersave.c index c143dc237d87..1ae66019eb83 100644 --- a/drivers/cpufreq/cpufreq_powersave.c +++ b/drivers/cpufreq/cpufreq_powersave.c @@ -43,7 +43,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return &cpufreq_gov_powersave; } -fs_initcall(cpufreq_gov_powersave_init); +core_initcall(cpufreq_gov_powersave_init); #else module_init(cpufreq_gov_powersave_init); #endif diff --git a/drivers/cpufreq/cpufreq_userspace.c b/drivers/cpufreq/cpufreq_userspace.c index cbd81c58cb8f..b43e7cd502c5 100644 --- a/drivers/cpufreq/cpufreq_userspace.c +++ b/drivers/cpufreq/cpufreq_userspace.c @@ -147,7 +147,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) return &cpufreq_gov_userspace; } -fs_initcall(cpufreq_gov_userspace_init); +core_initcall(cpufreq_gov_userspace_init); #else module_init(cpufreq_gov_userspace_init); #endif