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
e249c44b
Commit
e249c44b
authored
Feb 24, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/cpufreq
into ppc970.osdl.org:/home/torvalds/v2.5/linux
parents
f675e439
7886396c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+14
-4
No files found.
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
e249c44b
...
...
@@ -256,6 +256,16 @@ static int __init longhaul_get_ranges (void)
dprintk
(
KERN_INFO
PFX
"FSB: %dMHz Lowestspeed=%dMHz Highestspeed=%dMHz
\n
"
,
fsb
,
lowest_speed
/
1000
,
highest_speed
/
1000
);
if
(
lowest_speed
==
highest_speed
)
{
printk
(
KERN_INFO
PFX
"highestspeed == lowest, aborting.
\n
"
);
return
-
EINVAL
;
}
if
(
lowest_speed
>
highest_speed
)
{
printk
(
KERN_INFO
PFX
"nonsense! lowest (%d > %d) !
\n
"
,
lowest_speed
,
highest_speed
);
return
-
EINVAL
;
}
longhaul_table
=
kmalloc
((
numscales
+
1
)
*
sizeof
(
struct
cpufreq_frequency_table
),
GFP_KERNEL
);
if
(
!
longhaul_table
)
return
-
ENOMEM
;
...
...
@@ -417,14 +427,14 @@ static int __init longhaul_cpu_init (struct cpufreq_policy *policy)
printk
(
KERN_INFO
PFX
"VIA %s CPU detected. Longhaul v%d supported.
\n
"
,
cpuname
,
longhaul_version
);
if
((
longhaul_version
==
2
)
&&
(
dont_scale_voltage
==
0
))
longhaul_setup_voltagescaling
();
ret
=
longhaul_get_ranges
();
if
(
ret
!=
0
)
return
ret
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
if
((
longhaul_version
==
2
)
&&
(
dont_scale_voltage
==
0
))
longhaul_setup_voltagescaling
();
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cur
=
calc_speed
(
longhaul_get_cpu_mult
(),
fsb
);
...
...
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