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
b8030f26
Commit
b8030f26
authored
Jan 05, 2004
by
Dave Jones
Committed by
Dave Jones
Jan 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Support for 533 MHz FSB in speedstep driver.
parent
878a23b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
4 deletions
+35
-4
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
+34
-3
arch/i386/kernel/cpu/cpufreq/speedstep-lib.h
arch/i386/kernel/cpu/cpufreq/speedstep-lib.h
+1
-1
No files found.
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
View file @
b8030f26
...
...
@@ -106,14 +106,45 @@ static unsigned int pentium3_get_frequency (unsigned int processor)
static
unsigned
int
pentium4_get_frequency
(
void
)
{
u32
msr_lo
,
msr_hi
;
struct
cpuinfo_x86
*
c
=
&
boot_cpu_data
;
u32
msr_lo
,
msr_hi
,
mult
;
unsigned
int
fsb
=
0
;
rdmsr
(
0x2c
,
msr_lo
,
msr_hi
);
dprintk
(
KERN_DEBUG
"speedstep-lib: P4 - MSR_EBC_FREQUENCY_ID: 0x%x 0x%x
\n
"
,
msr_lo
,
msr_hi
);
msr_lo
>>=
24
;
return
(
msr_lo
*
100000
);
/* decode the FSB: see IA-32 Intel (C) Architecture Software
* Developer's Manual, Volume 3: System Prgramming Guide,
* revision #12 in Table B-1: MSRs in the Pentium 4 and
* Intel Xeon Processors, on page B-4 and B-5.
*/
if
(
c
->
x86_model
<
2
)
fsb
=
100
*
1000
;
else
{
u8
fsb_code
=
(
msr_lo
>>
16
)
&
0x7
;
switch
(
fsb_code
)
{
case
0
:
fsb
=
100
*
1000
;
break
;
case
1
:
fsb
=
13333
*
10
;
break
;
case
2
:
fsb
=
200
*
1000
;
break
;
}
}
if
(
!
fsb
)
printk
(
KERN_DEBUG
"speedstep-lib: couldn't detect FSB speed. Please send an e-mail to <linux@brodo.de>
\n
"
);
/* Multiplier. */
mult
=
msr_lo
>>
24
;
dprintk
(
KERN_DEBUG
"speedstep-lib: P4 - FSB %u kHz; Multiplier %u
\n
"
,
fsb
,
mult
);
return
(
fsb
*
mult
);
}
...
...
arch/i386/kernel/cpu/cpufreq/speedstep-lib.h
View file @
b8030f26
...
...
@@ -15,7 +15,7 @@
#define SPEEDSTEP_PROCESSOR_PIII_C_EARLY 0x00000001
/* Coppermine core */
#define SPEEDSTEP_PROCESSOR_PIII_C 0x00000002
/* Coppermine core */
#define SPEEDSTEP_PROCESSOR_PIII_T 0x00000003
/* Tualatin core */
#define SPEEDSTEP_PROCESSOR_P4M 0x00000004
/* P4-M
with 100 MHz FSB
*/
#define SPEEDSTEP_PROCESSOR_P4M 0x00000004
/* P4-M */
/* speedstep states -- only two of them */
...
...
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