lkml.org 
[lkml]   [2021]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 3/9] devfreq: Use HZ macros
    Date
    HZ unit conversion macros are available in units.h, use them and
    remove the duplicate definition.

    Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
    Reviewed-by: Christian Eggers <ceggers@arri.de>
    Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
    ---
    drivers/devfreq/devfreq.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
    index bf3047896e41..b6d63f02d293 100644
    --- a/drivers/devfreq/devfreq.c
    +++ b/drivers/devfreq/devfreq.c
    @@ -26,6 +26,7 @@
    #include <linux/hrtimer.h>
    #include <linux/of.h>
    #include <linux/pm_qos.h>
    +#include <linux/units.h>
    #include "governor.h"

    #define CREATE_TRACE_POINTS
    @@ -33,7 +34,6 @@

    #define IS_SUPPORTED_FLAG(f, name) ((f & DEVFREQ_GOV_FLAG_##name) ? true : false)
    #define IS_SUPPORTED_ATTR(f, name) ((f & DEVFREQ_GOV_ATTR_##name) ? true : false)
    -#define HZ_PER_KHZ 1000

    static struct class *devfreq_class;
    static struct dentry *devfreq_debugfs;
    --
    2.17.1
    \
     
     \ /
      Last update: 2021-02-24 16:40    [W:6.108 / U:0.452 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site