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;