diff options
author | Yicong Yang <yangyicong@hisilicon.com> | 2022-06-10 09:54:28 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-06-29 22:11:17 +0200 |
commit | 20e6c3cc90c0a86dba659dd9e7d60b429d88746d (patch) | |
tree | f7ddb1af5c1f67c4f7218cc06b5f21ddf1c80801 /drivers/devfreq | |
parent | PM / devfreq: Fix cpufreq passive unregister erroring on PROBE_DEFER (diff) | |
download | linux-20e6c3cc90c0a86dba659dd9e7d60b429d88746d.tar.xz linux-20e6c3cc90c0a86dba659dd9e7d60b429d88746d.zip |
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')
-rw-r--r-- | drivers/devfreq/governor_passive.c | 3 |
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) |