cpufreq: qcom-cpufreq-hw: use HZ_PER_KHZ macro in units.h
authorYicong Yang <yangyicong@hisilicon.com>
Fri, 10 Jun 2022 07:53:09 +0000 (15:53 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 13 Jul 2022 11:23:00 +0000 (16:53 +0530)
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>
drivers/cpufreq/qcom-cpufreq-hw.c

index 36c79580fba25475de26cd8722625fd7c3ad2d69..072a4b31f98eecdb38995bcf3f53261ade2bec97 100644 (file)
@@ -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;