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
Kirill Smelkov
linux
Commits
36f111a9
Commit
36f111a9
authored
Jun 05, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] CodingStyle fixes
parent
fd811936
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
kernel/cpufreq.c
kernel/cpufreq.c
+8
-4
No files found.
kernel/cpufreq.c
View file @
36f111a9
...
@@ -51,7 +51,8 @@ static DECLARE_MUTEX (cpufreq_governor_sem);
...
@@ -51,7 +51,8 @@ static DECLARE_MUTEX (cpufreq_governor_sem);
static
struct
class_interface
cpufreq_interface
;
static
struct
class_interface
cpufreq_interface
;
static
int
cpufreq_cpu_get
(
unsigned
int
cpu
)
{
static
int
cpufreq_cpu_get
(
unsigned
int
cpu
)
{
if
(
cpu
>=
NR_CPUS
)
if
(
cpu
>=
NR_CPUS
)
return
0
;
return
0
;
...
@@ -69,7 +70,8 @@ static int cpufreq_cpu_get(unsigned int cpu) {
...
@@ -69,7 +70,8 @@ static int cpufreq_cpu_get(unsigned int cpu) {
return
1
;
return
1
;
}
}
static
void
cpufreq_cpu_put
(
unsigned
int
cpu
)
{
static
void
cpufreq_cpu_put
(
unsigned
int
cpu
)
{
kobject_put
(
&
cpufreq_driver
->
policy
[
cpu
].
kobj
);
kobject_put
(
&
cpufreq_driver
->
policy
[
cpu
].
kobj
);
module_put
(
cpufreq_driver
->
owner
);
module_put
(
cpufreq_driver
->
owner
);
}
}
...
@@ -81,7 +83,8 @@ static void cpufreq_cpu_put(unsigned int cpu) {
...
@@ -81,7 +83,8 @@ static void cpufreq_cpu_put(unsigned int cpu) {
/**
/**
* cpufreq_parse_governor - parse a governor string
* cpufreq_parse_governor - parse a governor string
*/
*/
int
cpufreq_parse_governor
(
char
*
str_governor
,
unsigned
int
*
policy
,
struct
cpufreq_governor
**
governor
)
int
cpufreq_parse_governor
(
char
*
str_governor
,
unsigned
int
*
policy
,
struct
cpufreq_governor
**
governor
)
{
{
if
(
!
strnicmp
(
str_governor
,
"performance"
,
CPUFREQ_NAME_LEN
))
{
if
(
!
strnicmp
(
str_governor
,
"performance"
,
CPUFREQ_NAME_LEN
))
{
*
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
*
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
...
@@ -230,7 +233,8 @@ static ssize_t show_scaling_driver (struct cpufreq_policy * policy, char *buf)
...
@@ -230,7 +233,8 @@ static ssize_t show_scaling_driver (struct cpufreq_policy * policy, char *buf)
/**
/**
* show_scaling_available_governors - show the available CPUfreq governors
* show_scaling_available_governors - show the available CPUfreq governors
*/
*/
static
ssize_t
show_scaling_available_governors
(
struct
cpufreq_policy
*
policy
,
char
*
buf
)
static
ssize_t
show_scaling_available_governors
(
struct
cpufreq_policy
*
policy
,
char
*
buf
)
{
{
ssize_t
i
=
0
;
ssize_t
i
=
0
;
struct
cpufreq_governor
*
t
;
struct
cpufreq_governor
*
t
;
...
...
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