Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1bceb8d1
Commit
1bceb8d1
authored
Jan 18, 2009
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] checkpatch cleanups for userspace governor
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
0a829c5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
drivers/cpufreq/cpufreq_userspace.c
drivers/cpufreq/cpufreq_userspace.c
+14
-13
No files found.
drivers/cpufreq/cpufreq_userspace.c
View file @
1bceb8d1
...
@@ -24,9 +24,6 @@
...
@@ -24,9 +24,6 @@
#include <linux/sysfs.h>
#include <linux/sysfs.h>
#include <linux/mutex.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>
/**
/**
* A few values needed by the userspace governor
* A few values needed by the userspace governor
*/
*/
...
@@ -37,7 +34,7 @@ static DEFINE_PER_CPU(unsigned int, cpu_set_freq); /* CPU freq desired by
...
@@ -37,7 +34,7 @@ static DEFINE_PER_CPU(unsigned int, cpu_set_freq); /* CPU freq desired by
userspace */
userspace */
static
DEFINE_PER_CPU
(
unsigned
int
,
cpu_is_managed
);
static
DEFINE_PER_CPU
(
unsigned
int
,
cpu_is_managed
);
static
DEFINE_MUTEX
(
userspace_mutex
);
static
DEFINE_MUTEX
(
userspace_mutex
);
static
int
cpus_using_userspace_governor
;
static
int
cpus_using_userspace_governor
;
#define dprintk(msg...) \
#define dprintk(msg...) \
...
@@ -93,8 +90,11 @@ static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq)
...
@@ -93,8 +90,11 @@ static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq)
* We're safe from concurrent calls to ->target() here
* We're safe from concurrent calls to ->target() here
* as we hold the userspace_mutex lock. If we were calling
* as we hold the userspace_mutex lock. If we were calling
* cpufreq_driver_target, a deadlock situation might occur:
* cpufreq_driver_target, a deadlock situation might occur:
* A: cpufreq_set (lock userspace_mutex) -> cpufreq_driver_target(lock policy->lock)
* A: cpufreq_set (lock userspace_mutex) ->
* B: cpufreq_set_policy(lock policy->lock) -> __cpufreq_governor -> cpufreq_governor_userspace (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
);
ret
=
__cpufreq_driver_target
(
policy
,
freq
,
CPUFREQ_RELATION_L
);
...
@@ -210,9 +210,10 @@ static void __exit cpufreq_gov_userspace_exit(void)
...
@@ -210,9 +210,10 @@ 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>, "
MODULE_DESCRIPTION
(
"CPUfreq policy governor 'userspace'"
);
"Russell King <rmk@arm.linux.org.uk>"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_DESCRIPTION
(
"CPUfreq policy governor 'userspace'"
);
MODULE_LICENSE
(
"GPL"
);
#ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE
#ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE
fs_initcall
(
cpufreq_gov_userspace_init
);
fs_initcall
(
cpufreq_gov_userspace_init
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment