]> Pileus Git - ~andy/linux/commitdiff
PM / devfreq: governors: add GPL module license and allow module build
authorNishanth Menon <nm@ti.com>
Mon, 29 Oct 2012 20:01:46 +0000 (15:01 -0500)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 20 Nov 2012 09:46:23 +0000 (18:46 +0900)
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>
drivers/devfreq/Kconfig
drivers/devfreq/governor_performance.c
drivers/devfreq/governor_powersave.c
drivers/devfreq/governor_simpleondemand.c
drivers/devfreq/governor_userspace.c

index f6b0a6e2ea501ff295c38953c4aeda870c497859..0f079be133051540c62d8c83d03579e132f7d6bd 100644 (file)
@@ -30,7 +30,7 @@ if PM_DEVFREQ
 comment "DEVFREQ Governors"
 
 config DEVFREQ_GOV_SIMPLE_ONDEMAND
 comment "DEVFREQ Governors"
 
 config DEVFREQ_GOV_SIMPLE_ONDEMAND
-       bool "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
@@ -39,7 +39,7 @@ config DEVFREQ_GOV_SIMPLE_ONDEMAND
          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
-       bool "Performance"
+       tristate "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
@@ -47,7 +47,7 @@ config DEVFREQ_GOV_PERFORMANCE
          at any time.
 
 config DEVFREQ_GOV_POWERSAVE
          at any time.
 
 config DEVFREQ_GOV_POWERSAVE
-       bool "Powersave"
+       tristate "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
@@ -55,7 +55,7 @@ config DEVFREQ_GOV_POWERSAVE
          at any time.
 
 config DEVFREQ_GOV_USERSPACE
          at any time.
 
 config DEVFREQ_GOV_USERSPACE
-       bool "Userspace"
+       tristate "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
index 865a3695691764c9155132c02a4f65cc1122a103..c72f942f30a85a198b89514703b485d9f790867b 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #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,
@@ -63,3 +64,4 @@ static void __exit devfreq_performance_exit(void)
        return;
 }
 module_exit(devfreq_performance_exit);
        return;
 }
 module_exit(devfreq_performance_exit);
+MODULE_LICENSE("GPL");
index 8612c0f96b793df48a5e6d5d7289773dafa46e8b..0c6bed567e6d4a12249f9891f06ed97411e118bc 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #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,
@@ -60,3 +61,4 @@ static void __exit devfreq_powersave_exit(void)
        return;
 }
 module_exit(devfreq_powersave_exit);
        return;
 }
 module_exit(devfreq_powersave_exit);
+MODULE_LICENSE("GPL");
index a870a24bb56b05731e8b9a0c804bbdfc5126b1e9..0720ba84ca9277df895168a788cae9d3d41bc40b 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #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"
@@ -143,3 +144,4 @@ static void __exit devfreq_simple_ondemand_exit(void)
        return;
 }
 module_exit(devfreq_simple_ondemand_exit);
        return;
 }
 module_exit(devfreq_simple_ondemand_exit);
+MODULE_LICENSE("GPL");
index 34fb80f50cf6e439cca5765e1f8bf66ca59805a5..35de6e83c1febedd99f8c155e374b5d4f8bb5202 100644 (file)
@@ -14,6 +14,7 @@
 #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 {
@@ -158,3 +159,4 @@ static void __exit devfreq_userspace_exit(void)
        return;
 }
 module_exit(devfreq_userspace_exit);
        return;
 }
 module_exit(devfreq_userspace_exit);
+MODULE_LICENSE("GPL");