diff options
author | Nishanth Menon <nm@ti.com> | 2012-10-29 16:01:46 -0400 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-20 04:46:23 -0500 |
commit | eff607fdb1f787da1fedf46ab6e64adc2afd1c5a (patch) | |
tree | 3405d164b0d1912596ebd78df2f742a34fc2e4f5 /drivers/devfreq | |
parent | 1b5c1be2c88e8445a20fa1929e26c37e7ca8c926 (diff) |
PM / devfreq: governors: add GPL module license and allow module build
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>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/Kconfig | 8 | ||||
-rw-r--r-- | drivers/devfreq/governor_performance.c | 2 | ||||
-rw-r--r-- | drivers/devfreq/governor_powersave.c | 2 | ||||
-rw-r--r-- | drivers/devfreq/governor_simpleondemand.c | 2 | ||||
-rw-r--r-- | drivers/devfreq/governor_userspace.c | 2 |
5 files changed, 12 insertions, 4 deletions
diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig index f6b0a6e2ea50..0f079be13305 100644 --- a/drivers/devfreq/Kconfig +++ b/drivers/devfreq/Kconfig | |||
@@ -30,7 +30,7 @@ if PM_DEVFREQ | |||
30 | comment "DEVFREQ Governors" | 30 | comment "DEVFREQ Governors" |
31 | 31 | ||
32 | config DEVFREQ_GOV_SIMPLE_ONDEMAND | 32 | config DEVFREQ_GOV_SIMPLE_ONDEMAND |
33 | bool "Simple Ondemand" | 33 | tristate "Simple Ondemand" |
34 | help | 34 | help |
35 | Chooses frequency based on the recent load on the device. Works | 35 | Chooses frequency based on the recent load on the device. Works |
36 | similar as ONDEMAND governor of CPUFREQ does. A device with | 36 | similar as ONDEMAND governor of CPUFREQ does. A device with |
@@ -39,7 +39,7 @@ config DEVFREQ_GOV_SIMPLE_ONDEMAND | |||
39 | values to the governor with data field at devfreq_add_device(). | 39 | values to the governor with data field at devfreq_add_device(). |
40 | 40 | ||
41 | config DEVFREQ_GOV_PERFORMANCE | 41 | config DEVFREQ_GOV_PERFORMANCE |
42 | bool "Performance" | 42 | tristate "Performance" |
43 | help | 43 | help |
44 | Sets the frequency at the maximum available frequency. | 44 | Sets the frequency at the maximum available frequency. |
45 | This governor always returns UINT_MAX as frequency so that | 45 | This governor always returns UINT_MAX as frequency so that |
@@ -47,7 +47,7 @@ config DEVFREQ_GOV_PERFORMANCE | |||
47 | at any time. | 47 | at any time. |
48 | 48 | ||
49 | config DEVFREQ_GOV_POWERSAVE | 49 | config DEVFREQ_GOV_POWERSAVE |
50 | bool "Powersave" | 50 | tristate "Powersave" |
51 | help | 51 | help |
52 | Sets the frequency at the minimum available frequency. | 52 | Sets the frequency at the minimum available frequency. |
53 | This governor always returns 0 as frequency so that | 53 | This governor always returns 0 as frequency so that |
@@ -55,7 +55,7 @@ config DEVFREQ_GOV_POWERSAVE | |||
55 | at any time. | 55 | at any time. |
56 | 56 | ||
57 | config DEVFREQ_GOV_USERSPACE | 57 | config DEVFREQ_GOV_USERSPACE |
58 | bool "Userspace" | 58 | tristate "Userspace" |
59 | help | 59 | help |
60 | Sets the frequency at the user specified one. | 60 | Sets the frequency at the user specified one. |
61 | This governor returns the user configured frequency if there | 61 | This governor returns the user configured frequency if there |
diff --git a/drivers/devfreq/governor_performance.c b/drivers/devfreq/governor_performance.c index 865a36956917..c72f942f30a8 100644 --- a/drivers/devfreq/governor_performance.c +++ b/drivers/devfreq/governor_performance.c | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/devfreq.h> | 12 | #include <linux/devfreq.h> |
13 | #include <linux/module.h> | ||
13 | #include "governor.h" | 14 | #include "governor.h" |
14 | 15 | ||
15 | static int devfreq_performance_func(struct devfreq *df, | 16 | static int devfreq_performance_func(struct devfreq *df, |
@@ -63,3 +64,4 @@ static void __exit devfreq_performance_exit(void) | |||
63 | return; | 64 | return; |
64 | } | 65 | } |
65 | module_exit(devfreq_performance_exit); | 66 | module_exit(devfreq_performance_exit); |
67 | MODULE_LICENSE("GPL"); | ||
diff --git a/drivers/devfreq/governor_powersave.c b/drivers/devfreq/governor_powersave.c index 8612c0f96b79..0c6bed567e6d 100644 --- a/drivers/devfreq/governor_powersave.c +++ b/drivers/devfreq/governor_powersave.c | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/devfreq.h> | 12 | #include <linux/devfreq.h> |
13 | #include <linux/module.h> | ||
13 | #include "governor.h" | 14 | #include "governor.h" |
14 | 15 | ||
15 | static int devfreq_powersave_func(struct devfreq *df, | 16 | static int devfreq_powersave_func(struct devfreq *df, |
@@ -60,3 +61,4 @@ static void __exit devfreq_powersave_exit(void) | |||
60 | return; | 61 | return; |
61 | } | 62 | } |
62 | module_exit(devfreq_powersave_exit); | 63 | module_exit(devfreq_powersave_exit); |
64 | MODULE_LICENSE("GPL"); | ||
diff --git a/drivers/devfreq/governor_simpleondemand.c b/drivers/devfreq/governor_simpleondemand.c index a870a24bb56b..0720ba84ca92 100644 --- a/drivers/devfreq/governor_simpleondemand.c +++ b/drivers/devfreq/governor_simpleondemand.c | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
13 | #include <linux/module.h> | ||
13 | #include <linux/devfreq.h> | 14 | #include <linux/devfreq.h> |
14 | #include <linux/math64.h> | 15 | #include <linux/math64.h> |
15 | #include "governor.h" | 16 | #include "governor.h" |
@@ -143,3 +144,4 @@ static void __exit devfreq_simple_ondemand_exit(void) | |||
143 | return; | 144 | return; |
144 | } | 145 | } |
145 | module_exit(devfreq_simple_ondemand_exit); | 146 | module_exit(devfreq_simple_ondemand_exit); |
147 | MODULE_LICENSE("GPL"); | ||
diff --git a/drivers/devfreq/governor_userspace.c b/drivers/devfreq/governor_userspace.c index 34fb80f50cf6..35de6e83c1fe 100644 --- a/drivers/devfreq/governor_userspace.c +++ b/drivers/devfreq/governor_userspace.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/devfreq.h> | 14 | #include <linux/devfreq.h> |
15 | #include <linux/pm.h> | 15 | #include <linux/pm.h> |
16 | #include <linux/mutex.h> | 16 | #include <linux/mutex.h> |
17 | #include <linux/module.h> | ||
17 | #include "governor.h" | 18 | #include "governor.h" |
18 | 19 | ||
19 | struct userspace_data { | 20 | struct userspace_data { |
@@ -158,3 +159,4 @@ static void __exit devfreq_userspace_exit(void) | |||
158 | return; | 159 | return; |
159 | } | 160 | } |
160 | module_exit(devfreq_userspace_exit); | 161 | module_exit(devfreq_userspace_exit); |
162 | MODULE_LICENSE("GPL"); | ||