]> git.baikalelectronics.ru Git - kernel.git/commitdiff
PM / devfreq: passive: Use HZ_PER_KHZ macro in units.h
authorYicong Yang <yangyicong@hisilicon.com>
Fri, 10 Jun 2022 07:54:28 +0000 (15:54 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 29 Jun 2022 20:11:17 +0000 (05:11 +0900)
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 <yangyicong@hisilicon.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/governor_passive.c

index a35b39ac656cd523914191e91b75ed0860f030b0..69e06725d92b6b175314220183d873ecd4f89a2d 100644 (file)
 #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)