Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2016 Linaro
0004  * Viresh Kumar <viresh.kumar@linaro.org>
0005  */
0006 
0007 #ifndef __CPUFREQ_DT_H__
0008 #define __CPUFREQ_DT_H__
0009 
0010 #include <linux/types.h>
0011 
0012 struct cpufreq_policy;
0013 
0014 struct cpufreq_dt_platform_data {
0015     bool have_governor_per_policy;
0016 
0017     unsigned int    (*get_intermediate)(struct cpufreq_policy *policy,
0018                         unsigned int index);
0019     int     (*target_intermediate)(struct cpufreq_policy *policy,
0020                            unsigned int index);
0021     int (*suspend)(struct cpufreq_policy *policy);
0022     int (*resume)(struct cpufreq_policy *policy);
0023 };
0024 
0025 #endif /* __CPUFREQ_DT_H__ */