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
a9c2d07b
Commit
a9c2d07b
authored
Aug 14, 2003
by
Randy Dunlap
Committed by
Linus Torvalds
Aug 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] janitor: use -Evalues in cpufreq/speedstep
From: Maximilian Attems <janitor@sternwelten.at>
parent
462335fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
+5
-5
No files found.
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
View file @
a9c2d07b
...
@@ -230,12 +230,12 @@ unsigned int speedstep_get_freqs(unsigned int processor,
...
@@ -230,12 +230,12 @@ unsigned int speedstep_get_freqs(unsigned int processor,
unsigned
long
flags
;
unsigned
long
flags
;
if
((
!
processor
)
||
(
!
low_speed
)
||
(
!
high_speed
)
||
(
!
set_state
))
if
((
!
processor
)
||
(
!
low_speed
)
||
(
!
high_speed
)
||
(
!
set_state
))
return
EINVAL
;
return
-
EINVAL
;
/* get current speed */
/* get current speed */
prev_speed
=
speedstep_get_processor_frequency
(
processor
);
prev_speed
=
speedstep_get_processor_frequency
(
processor
);
if
(
!
prev_speed
)
if
(
!
prev_speed
)
return
EIO
;
return
-
EIO
;
local_irq_save
(
flags
);
local_irq_save
(
flags
);
...
@@ -243,7 +243,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
...
@@ -243,7 +243,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
set_state
(
SPEEDSTEP_LOW
,
0
);
set_state
(
SPEEDSTEP_LOW
,
0
);
*
low_speed
=
speedstep_get_processor_frequency
(
processor
);
*
low_speed
=
speedstep_get_processor_frequency
(
processor
);
if
(
!*
low_speed
)
{
if
(
!*
low_speed
)
{
ret
=
EIO
;
ret
=
-
EIO
;
goto
out
;
goto
out
;
}
}
...
@@ -251,12 +251,12 @@ unsigned int speedstep_get_freqs(unsigned int processor,
...
@@ -251,12 +251,12 @@ unsigned int speedstep_get_freqs(unsigned int processor,
set_state
(
SPEEDSTEP_HIGH
,
0
);
set_state
(
SPEEDSTEP_HIGH
,
0
);
*
high_speed
=
speedstep_get_processor_frequency
(
processor
);
*
high_speed
=
speedstep_get_processor_frequency
(
processor
);
if
(
!*
high_speed
)
{
if
(
!*
high_speed
)
{
ret
=
EIO
;
ret
=
-
EIO
;
goto
out
;
goto
out
;
}
}
if
(
*
low_speed
==
*
high_speed
)
{
if
(
*
low_speed
==
*
high_speed
)
{
ret
=
ENODEV
;
ret
=
-
ENODEV
;
goto
out
;
goto
out
;
}
}
...
...
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