From patchwork Mon Jan 14 10:21:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155426 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489408jaa; Mon, 14 Jan 2019 02:21:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN5yvSpE19wcLipKXSbNeZ7rWv37zQE9D8HVB25swDYZCSOmu2t5hVpWBo24EcUPxMwfTPt8 X-Received: by 2002:a62:6b8a:: with SMTP id g132mr24856106pfc.201.1547461309317; Mon, 14 Jan 2019 02:21:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461309; cv=none; d=google.com; s=arc-20160816; b=mSWbShDf8dMQnm7y55qZ3lir0Nj3YjdyuGcgtvlT5coNcKWSAd1JE+0WMspYb/FKdq gYs5R1ljyhn0doSe6sdC0QOXD3miyYvpciBqoPM1m+UfDHKGRfP4Hi7Yn0UYhGespIa+ I0+DHP0JwSApJBpflc6IWGVSBYw1d2NeuFrA8FY0jfazdaI0hH8cv+XzQo5kE/LnmT7o XJQtPoQrLA/DRN41Ov0D1i4RgbKdDwACbbzq5N4wSAjRx61b58kejNR2HmzUeIcPD2yV hkUjT2Sx2DPH+U81mgsZPfG4d/xIyn/s4GXLiC8SSPmwm/y72s7VIR//Iz3TbAUr5IJ9 ItNg== 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=BQcigTwmLx6wtNJkbza+fNndqo6R5swIJwwOJw4wxh8=; b=Vha6Myy7gSdxKiZTZZHNr1sURp93cMvCZmyP5YiJE9YrHxCWbB6mhg+a12ZlDoE8Jd XuRXK1hHkUGibW0u/U51GhYwR+1viRcGOSnjEqHOwhcxmiiwkuqvbwQ7cqICvVJWsEN3 k2mNGvhpwU3qboPmNW5e53bQ08AYjMfrNp/63cQADJx+BPxJDBy+mTQXT5x52Y+qoODV RO/jDG+mPc/QhoOXrpyeGPaOaE1hOr7b5zGU+p56BcoF7DnrPMjTeqDfJzBJZw54Gwgu 5J0CJ2DxQg05sRvFwgrzTGfg95KUf6tWdf3b1btTEYUDPvOFacGuvRYqkazccGFsoAx5 XBgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KAd62fxQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 191si29906pgf.41.2019.01.14.02.21.49; Mon, 14 Jan 2019 02:21:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=KAd62fxQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726802AbfANKVs (ORCPT + 31 others); Mon, 14 Jan 2019 05:21:48 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43680 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726787AbfANKVp (ORCPT ); Mon, 14 Jan 2019 05:21:45 -0500 Received: by mail-wr1-f66.google.com with SMTP id r10so22138460wrs.10 for ; Mon, 14 Jan 2019 02:21:44 -0800 (PST) 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=BQcigTwmLx6wtNJkbza+fNndqo6R5swIJwwOJw4wxh8=; b=KAd62fxQUgm/bVgOmDp0tmRdPoWBzID9XmJsxzsC2JFZ9SX6MqJWIDvc4/SeJBQCpW SbqHlojaHVqFxQtORtMCHZM1W70Tw0wKJYdJ8vUud0iVkiHw+86Qtkip9OWXRfy+hFjG /ZuzduBHyvGE512CYtsrGQX3jvjPawx7+9L8U= 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=BQcigTwmLx6wtNJkbza+fNndqo6R5swIJwwOJw4wxh8=; b=X7WTKwBRM/eN2LojnT1mA59pV1lXCNWAQanTT3Uz6eLRloUBAjorhhsVe5Wy9F3rLi Fljf4Cmatwwgn3dQVlKQEyYts+LWU5da4pMCp0TP+Fht+Nzwvaz6y0T0TbBZCzFTxgHJ kaeahApzZSgFbd62gb1H/4E6nb03GE/FD6PGk0ck6os6CGXagyix4VikZ1j4Zksw4zjw iaJUUmx25vOcwXQc/ypSjbIwmOhXw+kmSdc9uGmrA1mbvmOM43fiGI56IByDz74o5Enn hInP89x5vzedAQnXHKq3LFbOsOjev63XEy+Dt4mDN0dAqtwkjzpOOpOfRBiVgA4dfDOc PjRw== X-Gm-Message-State: AJcUukfhnAMVFsZZSoctrWIe25UCZ5y7E2ZFRIA87aQjaigx1W3CZNyk DBM4el/Uyb2MRbQ1q6kfeYOTaRj52yU= X-Received: by 2002:adf:97d1:: with SMTP id t17mr23797843wrb.283.1547461303153; Mon, 14 Jan 2019 02:21:43 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id f130sm26226842wme.41.2019.01.14.02.21.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:42 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v2 4/9] cpufreq: Add a flag to auto-register a cooling device Date: Mon, 14 Jan 2019 15:51:06 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All cpufreq drivers do similar things to register as a cooling device. Provide a cpufreq driver flag so drivers can just ask the cpufreq core to register the cooling device on their behalf. This allows us to get rid of duplicated code in the drivers. Suggested-by: Stephen Boyd Suggested-by: Viresh Kumar Signed-off-by: Amit Kucheria --- drivers/cpufreq/cpufreq.c | 13 +++++++++++++ include/linux/cpufreq.h | 6 ++++++ 2 files changed, 19 insertions(+) -- 2.17.1 diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 6f23ebb395f1..7faebfc61e60 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -30,6 +30,7 @@ #include #include #include +#include static LIST_HEAD(cpufreq_policy_list); @@ -1318,6 +1319,12 @@ static int cpufreq_online(unsigned int cpu) if (cpufreq_driver->ready) cpufreq_driver->ready(policy); + if (cpufreq_driver->flags & CPUFREQ_AUTO_REGISTER_COOLING_DEV) { + struct thermal_cooling_device **cdev = &policy->cooldev; + + *cdev = of_cpufreq_cooling_register(policy); + } + pr_debug("initialization complete\n"); return 0; @@ -1411,6 +1418,12 @@ static int cpufreq_offline(unsigned int cpu) if (has_target()) cpufreq_exit_governor(policy); + if (cpufreq_driver->flags & CPUFREQ_AUTO_REGISTER_COOLING_DEV) { + struct thermal_cooling_device **cdev = &policy->cooldev; + + cpufreq_cooling_unregister(*cdev); + } + /* * Perform the ->exit() even during light-weight tear-down, * since this is a core component, and is essential for the diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 9fbc1d996967..0c51d5ce7350 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -388,6 +388,12 @@ struct cpufreq_driver { */ #define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING (1 << 6) +/* + * Set by drivers that want the core to automatically register the cpufreq + * driver as a thermal cooling device + */ +#define CPUFREQ_AUTO_REGISTER_COOLING_DEV (1 << 7) + int cpufreq_register_driver(struct cpufreq_driver *driver_data); int cpufreq_unregister_driver(struct cpufreq_driver *driver_data); From patchwork Mon Jan 14 10:21:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155427 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489458jaa; Mon, 14 Jan 2019 02:21:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN5099BEFQdhBXDSuKano2DmL/vknhAH4t3utgJUfFCRt84wStk4JlKYCgkvyGiDF8nvh3+v X-Received: by 2002:a17:902:280b:: with SMTP id e11mr24794561plb.269.1547461313048; Mon, 14 Jan 2019 02:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461313; cv=none; d=google.com; s=arc-20160816; b=jqkz6S5ND1l45grJ4b2hVNSlmmuBHzlnr6MCJ4IQBNuf4B6eyUg/joIZyOGuyXm6xX PoARcNv5Z+HaGerTerXwvw5T2TocrIDpUVqIMXBRqDwKgwSWzKA685/9vTQl+02nS6qd sIgRbhu5EGpAcVH8FQ/07vwlIV9IfFPe0BPvPJuRxxffzswybjRGGBr/NR5ae/NNNYJ8 skCF+Xo3Z/jA6NHXm7fIQ0KrPYsxlkqoD6gOh927doKa11MIQznIvVJLNgcwyIGMeSv+ X6Qyno2dHeVFnIdgZaAbRef9ZxcYbzisT1Ax7ZScpLFIJIsF93QIvz5BNoyMM99HJGC8 k++Q== 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=VetZdY4CkpnIoseIMJiUu8n+JdK4ZfAqKf1jE2X0vFM=; b=SLMuUGXuHb8/9j4oPNOzmsoCnJz0Z0f3QOWHZEdOkiyIsONGyQxpmbEyxoL1b6Q6V2 R28Lz0JmWqFaueft1hGNL8HT2rdCshzfNG/vjVkcpI5ph7w9w4hrlGxeUBDGK180K4nV m7y7iEcDwSBC3QeAxvpHAAGZkCYtFSyuiI10IrPJL265dSwZ0aT6O6MCHQ808v3wg/4I WobRgSwjtygpLzuIQPRgJQDm1iXrFI1QUS3+2r0ssDIgZh7D412EEbCFPp3jp0Jx89oM AWWcVWywLz1jbZMIplj7l4g+fCatPA437rmtn7iK7lCSuTyNJ5WxSxlam93S9yhIq8uL 0jXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="OcGf/FTB"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 191si29906pgf.41.2019.01.14.02.21.52; Mon, 14 Jan 2019 02:21:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="OcGf/FTB"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726821AbfANKVw (ORCPT + 31 others); Mon, 14 Jan 2019 05:21:52 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55370 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726803AbfANKVv (ORCPT ); Mon, 14 Jan 2019 05:21:51 -0500 Received: by mail-wm1-f65.google.com with SMTP id y139so8221654wmc.5 for ; Mon, 14 Jan 2019 02:21:49 -0800 (PST) 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=VetZdY4CkpnIoseIMJiUu8n+JdK4ZfAqKf1jE2X0vFM=; b=OcGf/FTBqUMQkD9F05ac/NUQru8v7tpBP4vbtbbKVS/UChYWbb5hB7GTgeHar/vGlK 2c0g4PbEeuAcy+Y4+qKsBNp0HKDprBkO3MZkttoz7tfjSaTipbAZmuxRKe3zIsTw+goQ Nohy8SbKuperex8IV74nfYPaOA0hNbrOMjj/I= 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=VetZdY4CkpnIoseIMJiUu8n+JdK4ZfAqKf1jE2X0vFM=; b=eCzU+oQEbZNUAh041Yc9JJLLAblxdKX5dWsvXswRYSwzo/EzmGxonq8XJvt5MFK8Il VkjFn0ZGpH8EYC0/lKNykj6ob90/obgBSPacJ6skupoYDf3/LA1MGVfkVv8n4StRwR6+ OB5lwtN6RaCgdNrp58L+MTKkq7bR7WwDvG9XeNaZlFf67plHhCx8XgeddixbPfgdxy5X aHCS6hOEAB9+rozepqA4eSkC6veBajVMWQ8vNu+xUBzHZ/RSt5bMAGmMT46TcMaqBTpI ZVby/Lxz0xdDVJRytgiy7bIhVEXsJupXBWShqruBg+zgr54kDKMh8xTOAzOcpyisBCcc oh8g== X-Gm-Message-State: AJcUukcwMuFu1He77aKq+II22DYyuNMKxaOWq7BcBknH/oeBU+AfRpZz SNHio3qZLrLyfFvDCkYKSFYimpRbwa4= X-Received: by 2002:a1c:c60e:: with SMTP id w14mr11816664wmf.18.1547461308945; Mon, 14 Jan 2019 02:21:48 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id v6sm54612203wro.57.2019.01.14.02.21.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:48 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v2 5/9] cpufreq: Replace open-coded << with BIT() Date: Mon, 14 Jan 2019 15:51:07 +0530 Message-Id: <59ce8ef9777ab0ae3636d8d10110a7f331456ba6.1547458732.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Minor clean-up to use BIT() and keep checkpatch happy. Clean-up the comment formatting to while we're at it to make it easier to read. Signed-off-by: Amit Kucheria --- include/linux/cpufreq.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) -- 2.17.1 diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 0c51d5ce7350..c87989c97834 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -349,14 +349,15 @@ struct cpufreq_driver { }; /* flags */ -#define CPUFREQ_STICKY (1 << 0) /* driver isn't removed even if - all ->init() calls failed */ -#define CPUFREQ_CONST_LOOPS (1 << 1) /* loops_per_jiffy or other - kernel "constants" aren't - affected by frequency - transitions */ -#define CPUFREQ_PM_NO_WARN (1 << 2) /* don't warn on suspend/resume - speed mismatches */ + +/* driver isn't removed even if all ->init() calls failed */ +#define CPUFREQ_STICKY BIT(0) + +/* loops_per_jiffy or other kernel "constants" aren't affected by frequency transitions */ +#define CPUFREQ_CONST_LOOPS BIT(1) + +/* don't warn on suspend/resume speed mismatches */ +#define CPUFREQ_PM_NO_WARN BIT(2) /* * This should be set by platforms having multiple clock-domains, i.e. @@ -364,14 +365,14 @@ struct cpufreq_driver { * be created in cpu/cpu/cpufreq/ directory and so they can use the same * governor with different tunables for different clusters. */ -#define CPUFREQ_HAVE_GOVERNOR_PER_POLICY (1 << 3) +#define CPUFREQ_HAVE_GOVERNOR_PER_POLICY BIT(3) /* * Driver will do POSTCHANGE notifications from outside of their ->target() * routine and so must set cpufreq_driver->flags with this flag, so that core * can handle them specially. */ -#define CPUFREQ_ASYNC_NOTIFICATION (1 << 4) +#define CPUFREQ_ASYNC_NOTIFICATION BIT(4) /* * Set by drivers which want cpufreq core to check if CPU is running at a @@ -380,19 +381,19 @@ struct cpufreq_driver { * from the table. And if that fails, we will stop further boot process by * issuing a BUG_ON(). */ -#define CPUFREQ_NEED_INITIAL_FREQ_CHECK (1 << 5) +#define CPUFREQ_NEED_INITIAL_FREQ_CHECK BIT(5) /* * Set by drivers to disallow use of governors with "dynamic_switching" flag * set. */ -#define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING (1 << 6) +#define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING BIT(6) /* * Set by drivers that want the core to automatically register the cpufreq * driver as a thermal cooling device */ -#define CPUFREQ_AUTO_REGISTER_COOLING_DEV (1 << 7) +#define CPUFREQ_AUTO_REGISTER_COOLING_DEV BIT(7) int cpufreq_register_driver(struct cpufreq_driver *driver_data); int cpufreq_unregister_driver(struct cpufreq_driver *driver_data); From patchwork Mon Jan 14 10:21:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155429 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489638jaa; Mon, 14 Jan 2019 02:22:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN46rfLmUZf5pK8rVPMqeKn52MPvzGT99oN6j1LUbAa+DmAFRddtbCgvrUaWK3H3vjIMVHMp X-Received: by 2002:a65:4784:: with SMTP id e4mr21789470pgs.12.1547461324612; Mon, 14 Jan 2019 02:22:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461324; cv=none; d=google.com; s=arc-20160816; b=hnyyuYnn7Ek/cA2eaGD0pdBEITggvavm1YgB6UmRNe61ZeoCKXGXHhwG7737v8/srM 4mtO1Tr7HZF6OuDMAoMy9NjX/u4/eOQ5WlhqyLk7Zt3wut4aMUqq9xMIS4H8kTeG6eUS 6xir1cxZV8uLOlxvRC/Owj3k/sTPtYH3kFOurESe628cp+KCV49KvbUuyLY5n/hD1Ix7 PEu3HIa5RWSG7zgJOU/TToX83qdmZpayMLvkuLQBmSSaWYgmiIeH6KSEWKDtCORsFAvQ vpjGim5dZy1svGC0bfFrKiKqu5KUh1RMttamQ2gq3+l091ayZ62NpIw8FxaQegkgEtBR 6gPQ== 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=8dAtUVNc/SrckVQO26IbIxKg4nf0RH/0OVrQbJ3H/go=; b=bVhbR6r0TduIfRg4NrYuAPOJvbvr3SLO87dm/k5/wLSxbHxqO1ng+rAHWCMW1Juq+V +H70Oab9uXMeR4Vw4QTAkzDlvQ+UiIDPk/dUdJtBKxOHSsO1fEEVBgOecsR6WbwbKeAA /dj0s5VghNNxZ9CZo5bNT7ucBEZewX5G94/HqIgUxrh2dDlEs7y21F4+UoBm/DuZmG3O 1R2ABnrsMiR/Pvy7GlslR7BR76DhTNnyWIBQe9jzSbDA+DYh/qcyKdVFeOwB2N9zGgVc MCi1qX0hqACuOqRqrtI0Z3J3OYZHPiBULu5WHXg7Htx1xUG0NyRmsXKYUOfiRlx3MZjR t2nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Neux7xUr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id e8si10223pgn.325.2019.01.14.02.22.04; Mon, 14 Jan 2019 02:22:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=Neux7xUr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726855AbfANKWD (ORCPT + 31 others); Mon, 14 Jan 2019 05:22:03 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36170 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbfANKWC (ORCPT ); Mon, 14 Jan 2019 05:22:02 -0500 Received: by mail-wr1-f67.google.com with SMTP id u4so22176088wrp.3 for ; Mon, 14 Jan 2019 02:22:01 -0800 (PST) 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=8dAtUVNc/SrckVQO26IbIxKg4nf0RH/0OVrQbJ3H/go=; b=Neux7xUrwWoFXUZ7sVlRENjwWDvXD+6pnDNismmVjV6uSSqvJrw46OWS24nDJ2AePn y7oyCapNk6j8XZ0kCwI7CI+oxUaJTA4e7rmhf6/9xL4Yq7r6KubCv+6xcoG2PZ96k5oM tRSDtfOZtY2vTODgTdS0uw4hdtUN5FthqcDtw= 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=8dAtUVNc/SrckVQO26IbIxKg4nf0RH/0OVrQbJ3H/go=; b=W05gOVao/JCQ3GGEzY1x6dBH+9MijvMSU3+5pJ9esWYRLYol4TtHwH0+wC/OqX4MO0 CbZ6iQiuMBPrqqP0wK8rZc+NEo155as6670V9bCHmUPYbcNkeztsb9l6qxQsY5jslL3E hpvXptrMNM1DSqtnjDJP6lKEb9mxXieHZm1nLxhw3/8A+5+Xvux74aY5253P1E2tSb5U Y7yzczsIQNF3p6CSIfcGHR8Ue3TaFSwpsXQS50W9Wru+fPlfwzA8LuDL2gSS8lHuzYCR 65Ea/oUthX2u74M0c3tjGhYgpojWdfJaogju4NeGT0KI5XF6Uku9rsEC8qJHuZyjxo4O wtTg== X-Gm-Message-State: AJcUukeZ3ZbWDPqnv0lvj6y7WQVF33Yg523gUlTHpTv5g/NqhzTKvpkb l9kLaS5G49UvgsFB+9NSCh5QTc4zZH0= X-Received: by 2002:adf:f504:: with SMTP id q4mr24501045wro.321.1547461320685; Mon, 14 Jan 2019 02:22:00 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id e27sm75831684wra.67.2019.01.14.02.21.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:22:00 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v2 7/9] arm64: dts: sdm845: Increase alert trip point to 95 degrees Date: Mon, 14 Jan 2019 15:51:09 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 75 degrees is too aggressive for throttling the CPU. After speaking to Qualcomm engineers, increase it to 95 degrees. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 0e659b0524ba..fb7da678b116 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1720,7 +1720,7 @@ trips { cpu_alert0: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; }; @@ -1741,7 +1741,7 @@ trips { cpu_alert1: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; }; @@ -1762,7 +1762,7 @@ trips { cpu_alert2: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; }; @@ -1783,7 +1783,7 @@ trips { cpu_alert3: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; }; @@ -1804,7 +1804,7 @@ trips { cpu_alert4: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; }; @@ -1825,7 +1825,7 @@ trips { cpu_alert5: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; }; @@ -1846,7 +1846,7 @@ trips { cpu_alert6: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; }; @@ -1867,7 +1867,7 @@ trips { cpu_alert7: trip0 { - temperature = <75000>; + temperature = <95000>; hysteresis = <2000>; type = "passive"; };