summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cpufreq-dt.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2018-04-24 12:39:45 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-05-10 12:43:59 +0300
commit67782701157141048e065970ddb241a0461c55be (patch)
tree44b111baf38b3fb74c973ab2d3d51c68068e5e75 /drivers/cpufreq/cpufreq-dt.h
parent75bc37fefc4471e718ba8e651aa74673d4e0a9eb (diff)
downloadlinux-67782701157141048e065970ddb241a0461c55be.tar.xz
cpufreq: dt: Allow platform specific suspend/resume callbacks
Platforms may need to implement platform specific suspend/resume hooks. Update cpufreq-dt driver's platform data to contain those for such platforms. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Tested-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq-dt.h')
-rw-r--r--drivers/cpufreq/cpufreq-dt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq-dt.h b/drivers/cpufreq/cpufreq-dt.h
index 54d774e46c43..d5aeea13433e 100644
--- a/drivers/cpufreq/cpufreq-dt.h
+++ b/drivers/cpufreq/cpufreq-dt.h
@@ -12,8 +12,13 @@
#include <linux/types.h>
+struct cpufreq_policy;
+
struct cpufreq_dt_platform_data {
bool have_governor_per_policy;
+
+ int (*suspend)(struct cpufreq_policy *policy);
+ int (*resume)(struct cpufreq_policy *policy);
};
#endif /* __CPUFREQ_DT_H__ */