Loading drivers/cpufreq/cpufreq_userspace.c +14 −13 Original line number Diff line number Diff line Loading @@ -24,9 +24,6 @@ #include <linux/sysfs.h> #include <linux/mutex.h> #include <asm/uaccess.h> /** * A few values needed by the userspace governor */ Loading Loading @@ -93,8 +90,11 @@ static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) * We're safe from concurrent calls to ->target() here * as we hold the userspace_mutex lock. If we were calling * cpufreq_driver_target, a deadlock situation might occur: * A: cpufreq_set (lock userspace_mutex) -> cpufreq_driver_target(lock policy->lock) * B: cpufreq_set_policy(lock policy->lock) -> __cpufreq_governor -> cpufreq_governor_userspace (lock userspace_mutex) * A: cpufreq_set (lock userspace_mutex) -> * cpufreq_driver_target(lock policy->lock) * B: cpufreq_set_policy(lock policy->lock) -> * __cpufreq_governor -> * cpufreq_governor_userspace (lock userspace_mutex) */ ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); Loading Loading @@ -210,7 +210,8 @@ static void __exit cpufreq_gov_userspace_exit(void) } MODULE_AUTHOR ("Dominik Brodowski <linux@brodo.de>, Russell King <rmk@arm.linux.org.uk>"); MODULE_AUTHOR("Dominik Brodowski <linux@brodo.de>, " "Russell King <rmk@arm.linux.org.uk>"); MODULE_DESCRIPTION("CPUfreq policy governor 'userspace'"); MODULE_LICENSE("GPL"); Loading Loading
drivers/cpufreq/cpufreq_userspace.c +14 −13 Original line number Diff line number Diff line Loading @@ -24,9 +24,6 @@ #include <linux/sysfs.h> #include <linux/mutex.h> #include <asm/uaccess.h> /** * A few values needed by the userspace governor */ Loading Loading @@ -93,8 +90,11 @@ static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) * We're safe from concurrent calls to ->target() here * as we hold the userspace_mutex lock. If we were calling * cpufreq_driver_target, a deadlock situation might occur: * A: cpufreq_set (lock userspace_mutex) -> cpufreq_driver_target(lock policy->lock) * B: cpufreq_set_policy(lock policy->lock) -> __cpufreq_governor -> cpufreq_governor_userspace (lock userspace_mutex) * A: cpufreq_set (lock userspace_mutex) -> * cpufreq_driver_target(lock policy->lock) * B: cpufreq_set_policy(lock policy->lock) -> * __cpufreq_governor -> * cpufreq_governor_userspace (lock userspace_mutex) */ ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); Loading Loading @@ -210,7 +210,8 @@ static void __exit cpufreq_gov_userspace_exit(void) } MODULE_AUTHOR ("Dominik Brodowski <linux@brodo.de>, Russell King <rmk@arm.linux.org.uk>"); MODULE_AUTHOR("Dominik Brodowski <linux@brodo.de>, " "Russell King <rmk@arm.linux.org.uk>"); MODULE_DESCRIPTION("CPUfreq policy governor 'userspace'"); MODULE_LICENSE("GPL"); Loading