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
ff397823
Commit
ff397823
authored
Feb 10, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/cpufreq
into home.osdl.org:/home/torvalds/v2.5/linux
parents
8fcb1257
fd559ba6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+7
-6
No files found.
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
ff397823
...
@@ -63,11 +63,12 @@ static struct cpufreq_frequency_table *longhaul_table;
...
@@ -63,11 +63,12 @@ static struct cpufreq_frequency_table *longhaul_table;
static
unsigned
int
calc_speed
(
int
mult
,
int
fsb
)
static
unsigned
int
calc_speed
(
int
mult
,
int
fsb
)
{
{
int
m
hz
;
int
k
hz
;
m
hz
=
(
mult
/
10
)
*
fsb
;
k
hz
=
(
mult
/
10
)
*
fsb
;
if
(
mult
%
10
)
if
(
mult
%
10
)
mhz
+=
fsb
/
2
;
khz
+=
fsb
/
2
;
return
mhz
;
khz
*=
1000
;
return
khz
;
}
}
...
@@ -253,7 +254,7 @@ static int __init longhaul_get_ranges (void)
...
@@ -253,7 +254,7 @@ static int __init longhaul_get_ranges (void)
highest_speed
=
calc_speed
(
maxmult
,
fsb
);
highest_speed
=
calc_speed
(
maxmult
,
fsb
);
lowest_speed
=
calc_speed
(
minmult
,
fsb
);
lowest_speed
=
calc_speed
(
minmult
,
fsb
);
dprintk
(
KERN_INFO
PFX
"FSB: %dMHz Lowestspeed=%dMHz Highestspeed=%dMHz
\n
"
,
dprintk
(
KERN_INFO
PFX
"FSB: %dMHz Lowestspeed=%dMHz Highestspeed=%dMHz
\n
"
,
fsb
,
lowest_speed
,
highest_speed
);
fsb
,
lowest_speed
/
1000
,
highest_speed
/
1000
);
longhaul_table
=
kmalloc
((
numscales
+
1
)
*
sizeof
(
struct
cpufreq_frequency_table
),
GFP_KERNEL
);
longhaul_table
=
kmalloc
((
numscales
+
1
)
*
sizeof
(
struct
cpufreq_frequency_table
),
GFP_KERNEL
);
if
(
!
longhaul_table
)
if
(
!
longhaul_table
)
...
@@ -267,7 +268,7 @@ static int __init longhaul_get_ranges (void)
...
@@ -267,7 +268,7 @@ static int __init longhaul_get_ranges (void)
if
(
ratio
>
maxmult
||
ratio
<
minmult
)
if
(
ratio
>
maxmult
||
ratio
<
minmult
)
continue
;
continue
;
longhaul_table
[
k
].
frequency
=
calc_speed
(
ratio
,
fsb
);
longhaul_table
[
k
].
frequency
=
calc_speed
(
ratio
,
fsb
);
longhaul_table
[
k
].
index
=
(
j
<<
8
)
;
longhaul_table
[
k
].
index
=
j
;
k
++
;
k
++
;
}
}
...
...
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