cpufreq: Move gov_attr_* macros to cpufreq.h
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 17 May 2016 07:27:06 +0000 (12:57 +0530)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:36 +0000 (14:49 -0500)
commitaf32725e69e8848623dcbe0e94ac9ba0294779e1
tree8b289242820c48d4b6c5a25dfe1e9efd27f3c63d
parent16c33f88d899424b6ed6881022a28d5d1bcd698f
cpufreq: Move gov_attr_* macros to cpufreq.h

These macros can be reused by governors which don't use the common
governor code present in cpufreq_governor.c and should be moved to the
relevant header.

Now that they are getting moved to the right header file, reuse them in
schedutil governor as well (that required rename of show/store
routines).

Also create gov_attr_wo() macro for write-only sysfs files, this will be
used by Interactive governor in a later patch.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_governor.h
include/linux/cpufreq.h
kernel/sched/cpufreq_schedutil.c