summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorYicong Yang <yangyicong@hisilicon.com>2022-06-10 09:53:09 +0200
committerViresh Kumar <viresh.kumar@linaro.org>2022-07-13 13:23:00 +0200
commit9de0d75bb379c06e6d22e4b39552069fd9c869aa (patch)
tree966d37624546d78182791bc532e9000cd341337e /drivers/cpufreq
parentcpufreq: mediatek: fix error return code in mtk_cpu_dvfs_info_init() (diff)
downloadlinux-9de0d75bb379c06e6d22e4b39552069fd9c869aa.tar.xz
linux-9de0d75bb379c06e6d22e4b39552069fd9c869aa.zip
cpufreq: qcom-cpufreq-hw: use HZ_PER_KHZ macro in units.h
HZ macros has been centralized in units.h since [1]. Use it to avoid duplicated definition. [1] commit e2c77032fcbe ("units: add the HZ macros") Signed-off-by: Yicong Yang <yangyicong@hisilicon.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/qcom-cpufreq-hw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
index 36c79580fba2..072a4b31f98e 100644
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@ -15,6 +15,7 @@
#include <linux/pm_opp.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
+#include <linux/units.h>
#define LUT_MAX_ENTRIES 40U
#define LUT_SRC GENMASK(31, 30)
@@ -26,8 +27,6 @@
#define GT_IRQ_STATUS BIT(2)
-#define HZ_PER_KHZ 1000
-
struct qcom_cpufreq_soc_data {
u32 reg_enable;
u32 reg_domain_state;