Add GPL module license and remove the static build
restrictions for building governors. This allows governors now
to be loaded on a need basis and reloaded independently of kernel
build
Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Kevin Hilman <khilman@ti.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
comment "DEVFREQ Governors"
config DEVFREQ_GOV_SIMPLE_ONDEMAND
comment "DEVFREQ Governors"
config DEVFREQ_GOV_SIMPLE_ONDEMAND
+ tristate "Simple Ondemand"
help
Chooses frequency based on the recent load on the device. Works
similar as ONDEMAND governor of CPUFREQ does. A device with
help
Chooses frequency based on the recent load on the device. Works
similar as ONDEMAND governor of CPUFREQ does. A device with
values to the governor with data field at devfreq_add_device().
config DEVFREQ_GOV_PERFORMANCE
values to the governor with data field at devfreq_add_device().
config DEVFREQ_GOV_PERFORMANCE
help
Sets the frequency at the maximum available frequency.
This governor always returns UINT_MAX as frequency so that
help
Sets the frequency at the maximum available frequency.
This governor always returns UINT_MAX as frequency so that
at any time.
config DEVFREQ_GOV_POWERSAVE
at any time.
config DEVFREQ_GOV_POWERSAVE
help
Sets the frequency at the minimum available frequency.
This governor always returns 0 as frequency so that
help
Sets the frequency at the minimum available frequency.
This governor always returns 0 as frequency so that
at any time.
config DEVFREQ_GOV_USERSPACE
at any time.
config DEVFREQ_GOV_USERSPACE
help
Sets the frequency at the user specified one.
This governor returns the user configured frequency if there
help
Sets the frequency at the user specified one.
This governor returns the user configured frequency if there
*/
#include <linux/devfreq.h>
*/
#include <linux/devfreq.h>
+#include <linux/module.h>
#include "governor.h"
static int devfreq_performance_func(struct devfreq *df,
#include "governor.h"
static int devfreq_performance_func(struct devfreq *df,
return;
}
module_exit(devfreq_performance_exit);
return;
}
module_exit(devfreq_performance_exit);
*/
#include <linux/devfreq.h>
*/
#include <linux/devfreq.h>
+#include <linux/module.h>
#include "governor.h"
static int devfreq_powersave_func(struct devfreq *df,
#include "governor.h"
static int devfreq_powersave_func(struct devfreq *df,
return;
}
module_exit(devfreq_powersave_exit);
return;
}
module_exit(devfreq_powersave_exit);
*/
#include <linux/errno.h>
*/
#include <linux/errno.h>
+#include <linux/module.h>
#include <linux/devfreq.h>
#include <linux/math64.h>
#include "governor.h"
#include <linux/devfreq.h>
#include <linux/math64.h>
#include "governor.h"
return;
}
module_exit(devfreq_simple_ondemand_exit);
return;
}
module_exit(devfreq_simple_ondemand_exit);
#include <linux/devfreq.h>
#include <linux/pm.h>
#include <linux/mutex.h>
#include <linux/devfreq.h>
#include <linux/pm.h>
#include <linux/mutex.h>
+#include <linux/module.h>
#include "governor.h"
struct userspace_data {
#include "governor.h"
struct userspace_data {
return;
}
module_exit(devfreq_userspace_exit);
return;
}
module_exit(devfreq_userspace_exit);