Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nishanth Menon and committed by
MyungJoo Ham
eff607fd 1b5c1be2

+12 -4
+4 -4
drivers/devfreq/Kconfig
··· 30 30 comment "DEVFREQ Governors" 31 31 32 32 config DEVFREQ_GOV_SIMPLE_ONDEMAND 33 - bool "Simple Ondemand" 33 + tristate "Simple Ondemand" 34 34 help 35 35 Chooses frequency based on the recent load on the device. Works 36 36 similar as ONDEMAND governor of CPUFREQ does. A device with ··· 39 39 values to the governor with data field at devfreq_add_device(). 40 40 41 41 config DEVFREQ_GOV_PERFORMANCE 42 - bool "Performance" 42 + tristate "Performance" 43 43 help 44 44 Sets the frequency at the maximum available frequency. 45 45 This governor always returns UINT_MAX as frequency so that ··· 47 47 at any time. 48 48 49 49 config DEVFREQ_GOV_POWERSAVE 50 - bool "Powersave" 50 + tristate "Powersave" 51 51 help 52 52 Sets the frequency at the minimum available frequency. 53 53 This governor always returns 0 as frequency so that ··· 55 55 at any time. 56 56 57 57 config DEVFREQ_GOV_USERSPACE 58 - bool "Userspace" 58 + tristate "Userspace" 59 59 help 60 60 Sets the frequency at the user specified one. 61 61 This governor returns the user configured frequency if there
+2
drivers/devfreq/governor_performance.c
··· 10 10 */ 11 11 12 12 #include <linux/devfreq.h> 13 + #include <linux/module.h> 13 14 #include "governor.h" 14 15 15 16 static int devfreq_performance_func(struct devfreq *df, ··· 64 63 return; 65 64 } 66 65 module_exit(devfreq_performance_exit); 66 + MODULE_LICENSE("GPL");
+2
drivers/devfreq/governor_powersave.c
··· 10 10 */ 11 11 12 12 #include <linux/devfreq.h> 13 + #include <linux/module.h> 13 14 #include "governor.h" 14 15 15 16 static int devfreq_powersave_func(struct devfreq *df, ··· 61 60 return; 62 61 } 63 62 module_exit(devfreq_powersave_exit); 63 + MODULE_LICENSE("GPL");
+2
drivers/devfreq/governor_simpleondemand.c
··· 10 10 */ 11 11 12 12 #include <linux/errno.h> 13 + #include <linux/module.h> 13 14 #include <linux/devfreq.h> 14 15 #include <linux/math64.h> 15 16 #include "governor.h" ··· 144 143 return; 145 144 } 146 145 module_exit(devfreq_simple_ondemand_exit); 146 + MODULE_LICENSE("GPL");
+2
drivers/devfreq/governor_userspace.c
··· 14 14 #include <linux/devfreq.h> 15 15 #include <linux/pm.h> 16 16 #include <linux/mutex.h> 17 + #include <linux/module.h> 17 18 #include "governor.h" 18 19 19 20 struct userspace_data { ··· 159 158 return; 160 159 } 161 160 module_exit(devfreq_userspace_exit); 161 + MODULE_LICENSE("GPL");