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
e11ed9c5
Commit
e11ed9c5
authored
Apr 06, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/cpufreq
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
ba3d84f3
4ba16aa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
arch/i386/kernel/cpu/cpufreq/acpi.c
arch/i386/kernel/cpu/cpufreq/acpi.c
+1
-0
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+7
-4
No files found.
arch/i386/kernel/cpu/cpufreq/acpi.c
View file @
e11ed9c5
...
...
@@ -32,6 +32,7 @@
#include <linux/seq_file.h>
#include <asm/io.h>
#include <asm/delay.h>
#include <asm/uaccess.h>
#include <linux/acpi.h>
#include <acpi/processor.h>
...
...
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
e11ed9c5
...
...
@@ -456,8 +456,10 @@ static int __init longhaul_get_ranges (void)
}
longhaul_table
[
k
].
frequency
=
CPUFREQ_TABLE_END
;
if
(
!
k
)
if
(
!
k
)
{
kfree
(
longhaul_table
);
return
-
EINVAL
;
}
return
0
;
}
...
...
@@ -524,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 */
...
...
@@ -554,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
);
...
...
@@ -566,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