|
@@ -10,6 +10,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/devfreq.h>
|
|
#include <linux/devfreq.h>
|
|
|
|
+#include "governor.h"
|
|
|
|
|
|
static int devfreq_performance_func(struct devfreq *df,
|
|
static int devfreq_performance_func(struct devfreq *df,
|
|
unsigned long *freq)
|
|
unsigned long *freq)
|
|
@@ -25,8 +26,14 @@ static int devfreq_performance_func(struct devfreq *df,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static int performance_init(struct devfreq *devfreq)
|
|
|
|
+{
|
|
|
|
+ return update_devfreq(devfreq);
|
|
|
|
+}
|
|
|
|
+
|
|
const struct devfreq_governor devfreq_performance = {
|
|
const struct devfreq_governor devfreq_performance = {
|
|
.name = "performance",
|
|
.name = "performance",
|
|
|
|
+ .init = performance_init,
|
|
.get_target_freq = devfreq_performance_func,
|
|
.get_target_freq = devfreq_performance_func,
|
|
.no_central_polling = true,
|
|
.no_central_polling = true,
|
|
};
|
|
};
|