From patchwork Wed Feb 24 14:42:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 386866 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp479784jap; Wed, 24 Feb 2021 07:50:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNnY4spI3fZ9vTO4TboQZlArqpclcW0aZrfd9XAep1Ium1PA1FmjeqDVLiVCnjY4Br2fj2 X-Received: by 2002:a17:906:792:: with SMTP id l18mr30931995ejc.198.1614181837247; Wed, 24 Feb 2021 07:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614181837; cv=none; d=google.com; s=arc-20160816; b=seku//lShVzPtjEy0WT+8xtEikRFVbcZsnRG3fYi/lnP224EtGnXMgpbvsNxxF1nBZ LD1ueV7w79fHyRrqxbzNOoFNkvMxh1zkeyl5SFmKqdXJmomSXSg3KrYVtOvF4zGUoHla Ny1XhmJxTdqDGHUm6fOhtuc60OM0Yl+zOA8KLtEJtwL4to0y0fwxIEeFPdlXJRqhXkt9 D2QTp8+jLBcWPv/2l23VQfYQc3lGibzIjaxSP8vdWIu2NNo8SKJNyxdRvJc+EHHAVyKj QRHL9b5j7rQVuS6+dQdcQBXPeLlDOENhmoh+r2uy1Nxe3UzMw8XzmvtkhYc35nzjgouY yDag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=3ID/hgUKl1RSEU96QA4fvwKCcAxvndH9usR4QCrUTSg=; b=NdfdoTKQZJEyaWd/KZN9HyKRRypFf2vBK3OfBndBiSjoxCU+Yd/uGqHSDDBjvuSYF4 v/CTTgTSF7EKT6FQc4n/OdxHx6t0DjpQbubMCjBsVCQQHRWD69mTGiXc7qJ4y4G4Mv9d 7mgwPA+JBtsmhHWfGq1FIUkqcd66ZAUOCMirRVpvD0HDytcpzRzrfFNQG1mGZBZsq2G+ d289UQImyFC58/xQ6XLrs8kJ+Iq1qqznYeTaHzj5Cawm+M4HzaBjzFr48jwEaj7SVJY/ BTxeCB0kt//N1yuKdewo6DnYPLIuQg/66xMRbKNeiBhY5SI26TJrwFjeJcwCMmcDh6b0 8AEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eMxXV1Fg; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 hs7si1660903ejc.128.2021.02.24.07.50.37; Wed, 24 Feb 2021 07:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-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=eMxXV1Fg; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S232821AbhBXPta (ORCPT + 7 others); Wed, 24 Feb 2021 10:49:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234227AbhBXOnn (ORCPT ); Wed, 24 Feb 2021 09:43:43 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BBDBC06178A for ; Wed, 24 Feb 2021 06:42:36 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id u125so2026695wmg.4 for ; Wed, 24 Feb 2021 06:42:35 -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; bh=3ID/hgUKl1RSEU96QA4fvwKCcAxvndH9usR4QCrUTSg=; b=eMxXV1Fgj/2c77+pZ1G2PmcAqH1R7S8K6jKMxhWmVffCbLwYmqDCbjUC7ilBJY5N6L C6qoKcbIOEZavTSJRQRD2PI36JJBDZw+Iu9TljIiWxNK/VB1RTC1emqDmMHV3M7Nx0zO H2/+skGmZ4CuHIVoriuud2Bm433BVpq2nfvjLFT9F50BsWSlX3P5t72wwasheAMw5DAN K1EAEqFkEa3NF0MF1qwHnC8tiaK2JxGPWCf6bwqoWQ3exO8/zqIHtN2EZLJmSLgIx+Z4 TdR5WfnnrkWDjIvFoi72ikk0T+afh589Sv0OVtpyP2yF/fZJxd6Mo1Pkr77r3+8bAkB/ 6OHQ== 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; bh=3ID/hgUKl1RSEU96QA4fvwKCcAxvndH9usR4QCrUTSg=; b=l67tWqA/banAnBC7ykc4w3TrcolSpxC5DxktEZPR2zgdtDEJTQO30wHN7K+EyasOzY xGfc81psC8/dvdz1uF7+qiod59qp1CfIte4WEVDWm6Y2CAxgEu0oSKfQaxuEET/+SP/R 19HobdbW7CAKYvGTzgfK47gTKRO8Hz8hbXBeZkLOXUZEi/9gCZw0GUCDBV4+MGEcVCF0 IxtNuJs2Je3/mfTum45U26YytFVzBcdiaRS6IO5HPNP9ezrEbTnf+InW7KxHIjQWIsSy UbPKtGMNF42JD6CjXC5BuZat8knsELQKs5crHdipqNTlK9g2po2Guc9IFd2DZYevQXzi 6ipw== X-Gm-Message-State: AOAM5339r1oYfkyxFl0giV2iv6jDcbcmOTT4/4XfqgEB94JBRMrtCv9P uwC4lHC6Lat0sxFapLY7ZibEMg== X-Received: by 2002:a1c:9a48:: with SMTP id c69mr696200wme.157.1614177754622; Wed, 24 Feb 2021 06:42:34 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-157-252.adsl.proxad.net. [82.252.157.252]) by smtp.gmail.com with ESMTPSA id p3sm4170669wro.55.2021.02.24.06.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:42:34 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, Zhang Rui , Amit Kucheria , linux-pm@vger.kernel.org (open list:THERMAL) Subject: [PATCH v2 2/9] thermal/drivers/devfreq_cooling: Use HZ macros Date: Wed, 24 Feb 2021 15:42:12 +0100 Message-Id: <20210224144222.23762-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224144222.23762-1-daniel.lezcano@linaro.org> References: <20210224144222.23762-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano Reviewed-by: Christian Eggers --- drivers/thermal/devfreq_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c index fed3121ff2a1..fa5b8b0c7604 100644 --- a/drivers/thermal/devfreq_cooling.c +++ b/drivers/thermal/devfreq_cooling.c @@ -19,10 +19,10 @@ #include #include #include +#include #include -#define HZ_PER_KHZ 1000 #define SCALE_ERROR_MITIGATION 100 static DEFINE_IDA(devfreq_ida); From patchwork Wed Feb 24 14:42:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 386865 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp479291jap; Wed, 24 Feb 2021 07:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNiVKCdkEdRkBQS0o94OrSLm0ZpwrAq/KtvQQ/1JswOUn3ue6n1+WAKpUIyokKm6iaH12B X-Received: by 2002:a05:6402:3589:: with SMTP id y9mr34322205edc.344.1614181785643; Wed, 24 Feb 2021 07:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614181785; cv=none; d=google.com; s=arc-20160816; b=pGLaknBLOnKBVXBuyFGerFfzvHQWfjsCrbKOELVLvB7+P7Vh/Sjpguz8ptUdZ3LjXh xaH90od4Xss8YdYbti/5SRTDtAy48ZI/CBoth25H5w1kWJVQS0vBtMa63k62BS1Y1K9s ysm0x/ip3Kdg+C9dIvjvZgqS7EgcR2p1Ib9WuAa0IHVrXdTmBsng3hli7iaS6gMiR4GK nv9N6CMldUhhBshgQxC4I4AcPppN2oUxLly0PVzPJsS4T+IRUDGqYgSCiQAJH8VEuTM+ LUJwl9StZTlMDvC1B1pANOBnBsUeibNwba1qxa1tJS/GPPc9pZbHxfLdI4GQz2ZjvOSS KVKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=f3Rx3ISSQZbwMoT0/xtI9lPMDRxaNak0z84CcyofG7Y=; b=xz1XkO5PNM+5oyZbT99smVzREDYYqu2zJrojNTaKW0/bq/mc/WUjcUbxpaNp7iqDrY 51jz44bnmnNCgMjgYSbcsGywIDoZ8jTLc8k0JCZUV8qgQGZekI8oM3KNovFYNccR3wpR 9BJKUNjI+hf7vT5TDFbpvlSoWLuqsq6NUTbaWQukS8lCcKa9s87N+AtkH/38fF8yKijH x8gxTRHh3net4ojurhi3SFrgnLv1qzXEbW7jxdtLNvc9omHboW7k+4pUx401tJcvPoTZ 21TFGXpj1I7A5UzdMuzfXWizgarJEi3wrTQKatkJcjd4DURd3mfdqnW6klRi5uRGQoNK tyjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fqElaXSK; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 hs7si1660903ejc.128.2021.02.24.07.49.45; Wed, 24 Feb 2021 07:49:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-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=fqElaXSK; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S235903AbhBXPqp (ORCPT + 7 others); Wed, 24 Feb 2021 10:46:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234279AbhBXOnn (ORCPT ); Wed, 24 Feb 2021 09:43:43 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5640DC06178B for ; Wed, 24 Feb 2021 06:42:37 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id t15so2105796wrx.13 for ; Wed, 24 Feb 2021 06:42:37 -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; bh=f3Rx3ISSQZbwMoT0/xtI9lPMDRxaNak0z84CcyofG7Y=; b=fqElaXSKfBJ38b7QbFzdBU+kVcKshlDQjYrzuEBxowokUdx8lc4QqQcOoyatrZM6dZ LJm0SC6BVetCwxUhYdyc4RCOfNR8w/1KyhfVBIT/6bDqEFDN30nWKcDKlgLxswe/xxuO PfRUAEP3fjVrHjiJ6oekfROrX2qJfVLmkk7HNiiSIrQtsEriU+6aoM8Zr+SSq36x/kdU QLAwm+T6d8Rsr74i5/lNmXaTmArHrb1Ar2XX3vAa1Ckico5nDHENWimRHw2qknx7JES4 fXfZV3e1yUwMRECkGzsZCNSZE+cvkIOJ5+63vvmvzKXznBTFhh+b+NJG+t2+7yzmRkz+ AgqA== 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; bh=f3Rx3ISSQZbwMoT0/xtI9lPMDRxaNak0z84CcyofG7Y=; b=FCy9c9Fn4DuRmR8RzC5hXLKatuHuE+dZcqh5KE+CIwtwOteFpgDf4EcwJK1eVN1+Tz RNHefN52g3mc8KuKeOA8V6j+0dZffRkIJU8epbyl/KrFWaudrN8X6D7esdDR8rMI/JUF VfvPs0qrJxoLSNcka5OWG0Xlfb8VZGWDqpnhPthhjND3EuLFnTrkfBk1UfTaTZCDxj/P YalHg29Gw36RqGGSLVwK4g+DDueK5ce7HgNGieOZAT+Wr42tEvFmh4D2OiiDTquGtBcl Np9xN6hzlvHPPn7NPG5mg74k2w8vV6kPz3RiE+6zT48g+8vsS/GX4tndr+pQuHXTb4ri a1fQ== X-Gm-Message-State: AOAM532fTYR2KsjLEU8YK884g8ylseOa2Yuk+bdYR88L5+ZWTkW5FVwz xF+ASTGvOdZAAX/qcFa4gHkXcg== X-Received: by 2002:adf:f6d0:: with SMTP id y16mr32364409wrp.351.1614177756072; Wed, 24 Feb 2021 06:42:36 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-157-252.adsl.proxad.net. [82.252.157.252]) by smtp.gmail.com with ESMTPSA id p3sm4170669wro.55.2021.02.24.06.42.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:42:35 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, Chanwoo Choi , MyungJoo Ham , Kyungmin Park , linux-pm@vger.kernel.org (open list:DEVICE FREQUENCY (DEVFREQ)) Subject: [PATCH v2 3/9] devfreq: Use HZ macros Date: Wed, 24 Feb 2021 15:42:13 +0100 Message-Id: <20210224144222.23762-3-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224144222.23762-1-daniel.lezcano@linaro.org> References: <20210224144222.23762-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano Reviewed-by: Christian Eggers Acked-by: Chanwoo Choi --- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index bf3047896e41..b6d63f02d293 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "governor.h" #define CREATE_TRACE_POINTS @@ -33,7 +34,6 @@ #define IS_SUPPORTED_FLAG(f, name) ((f & DEVFREQ_GOV_FLAG_##name) ? true : false) #define IS_SUPPORTED_ATTR(f, name) ((f & DEVFREQ_GOV_ATTR_##name) ? true : false) -#define HZ_PER_KHZ 1000 static struct class *devfreq_class; static struct dentry *devfreq_debugfs;