|
@@ -219,6 +219,7 @@ __ATTR(_name, 0644, show_##_name, store_##_name)
|
|
struct cpufreq_driver {
|
|
struct cpufreq_driver {
|
|
char name[CPUFREQ_NAME_LEN];
|
|
char name[CPUFREQ_NAME_LEN];
|
|
u8 flags;
|
|
u8 flags;
|
|
|
|
+ void *driver_data;
|
|
|
|
|
|
/* needed by all drivers */
|
|
/* needed by all drivers */
|
|
int (*init) (struct cpufreq_policy *policy);
|
|
int (*init) (struct cpufreq_policy *policy);
|
|
@@ -312,6 +313,7 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data);
|
|
int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);
|
|
int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);
|
|
|
|
|
|
const char *cpufreq_get_current_driver(void);
|
|
const char *cpufreq_get_current_driver(void);
|
|
|
|
+void *cpufreq_get_driver_data(void);
|
|
|
|
|
|
static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy,
|
|
static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy,
|
|
unsigned int min, unsigned int max)
|
|
unsigned int min, unsigned int max)
|