summaryrefslogtreecommitdiff
path: root/drivers/devfreq/governor_passive.c
diff options
context:
space:
mode:
authorYicong Yang <yangyicong@hisilicon.com>2022-06-10 10:54:28 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2022-06-29 23:11:17 +0300
commit20e6c3cc90c0a86dba659dd9e7d60b429d88746d (patch)
treef7ddb1af5c1f67c4f7218cc06b5f21ddf1c80801 /drivers/devfreq/governor_passive.c
parent0cca7e8dcfa9e6fe7ba697e534a732571f1689d0 (diff)
downloadlinux-20e6c3cc90c0a86dba659dd9e7d60b429d88746d.tar.xz
PM / devfreq: passive: 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: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq/governor_passive.c')
-rw-r--r--drivers/devfreq/governor_passive.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/governor_passive.c
index a35b39ac656c..69e06725d92b 100644
--- a/drivers/devfreq/governor_passive.c
+++ b/drivers/devfreq/governor_passive.c
@@ -14,10 +14,9 @@
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/devfreq.h>
+#include <linux/units.h>
#include "governor.h"
-#define HZ_PER_KHZ 1000
-
static struct devfreq_cpu_data *
get_parent_cpu_data(struct devfreq_passive_data *p_data,
struct cpufreq_policy *policy)