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
4ba16aa1
Commit
4ba16aa1
authored
Apr 07, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] propagate longhaul_get_ranges() failure up if something went wrong.
parent
179d71b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+4
-3
No files found.
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
4ba16aa1
...
...
@@ -526,6 +526,7 @@ static int longhaul_target (struct cpufreq_policy *policy,
static
int
longhaul_cpu_init
(
struct
cpufreq_policy
*
policy
)
{
struct
cpuinfo_x86
*
c
=
cpu_data
;
int
ret
;
switch
(
c
->
x86_model
)
{
case
6
:
/* VIA C3 Samuel C5A */
...
...
@@ -556,7 +557,6 @@ static int longhaul_cpu_init (struct cpufreq_policy *policy)
memcpy
(
clock_ratio
,
longhaul3_clock_ratio
,
sizeof
(
longhaul3_clock_ratio
));
memcpy
(
eblcr_table
,
c5m_eblcr
,
sizeof
(
c5m_eblcr
));
break
;
}
printk
(
KERN_INFO
"longhaul: VIA CPU detected. Longhaul version %d supported
\n
"
,
longhaul
);
...
...
@@ -568,8 +568,9 @@ static int longhaul_cpu_init (struct cpufreq_policy *policy)
longhaul_setup_voltagescaling
(
lo
,
hi
);
}
if
(
longhaul_get_ranges
())
return
-
ENOMEM
;
ret
=
longhaul_get_ranges
();
if
(
ret
!=
0
)
return
ret
;
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
...
...
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