From: Yicong Yang Date: Fri, 10 Jun 2022 07:54:28 +0000 (+0800) Subject: PM / devfreq: passive: Use HZ_PER_KHZ macro in units.h X-Git-Tag: baikal/mips/sdk6.1~5384^2~1^2~4 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=0888ed1a450f276e5aa8b8701c4f61b1d4df1397;p=kernel.git 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 cc7be10eedfc ("units: add the HZ macros") Signed-off-by: Yicong Yang Signed-off-by: Chanwoo Choi --- diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/governor_passive.c index a35b39ac656cd..69e06725d92b6 100644 --- a/drivers/devfreq/governor_passive.c +++ b/drivers/devfreq/governor_passive.c @@ -14,10 +14,9 @@ #include #include #include +#include #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)