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
0ad03924
Commit
0ad03924
authored
Jul 15, 2003
by
Dave Jones
Committed by
Dave Jones
Jul 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] longhaul printk cleanups
- missing KERN_INFO's - Use PFX.
parent
47717033
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+12
-10
No files found.
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
0ad03924
...
...
@@ -40,6 +40,8 @@
#define dprintk(msg...) do { } while(0)
#endif
#define PFX "longhaul: "
static
unsigned
int
numscales
=
16
,
numvscales
;
static
int
minvid
,
maxvid
;
static
int
can_scale_voltage
;
...
...
@@ -309,7 +311,7 @@ static void longhaul_setstate (unsigned int clock_ratio_index)
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_PRECHANGE
);
dprintk
(
KERN_INFO
"longhaul:
FSB:%d Mult(x10):%d
\n
"
,
dprintk
(
KERN_INFO
PFX
"
FSB:%d Mult(x10):%d
\n
"
,
fsb
*
100
,
clock_ratio
[
clock_ratio_index
]);
bits
=
clock_ratio_index
;
...
...
@@ -356,7 +358,7 @@ static void longhaul_setstate (unsigned int clock_ratio_index)
if
(
i
==
32
)
goto
bad_voltage
;
dprintk
(
KERN_INFO
"longhaul:
Desired vid index=%d
\n
"
,
i
);
dprintk
(
KERN_INFO
PFX
"
Desired vid index=%d
\n
"
,
i
);
#if 0
lo &= 0xfe0fffff;/* reset [24:20](voltage) to 0 */
lo |= (i<<20); /* set voltage */
...
...
@@ -436,9 +438,9 @@ static int __init longhaul_get_ranges (void)
highest_speed
=
maxmult
*
fsb
*
100
;
lowest_speed
=
minmult
*
fsb
*
100
;
dprintk
(
KERN_INFO
"longhaul:
MinMult(x10)=%d MaxMult(x10)=%d
\n
"
,
dprintk
(
KERN_INFO
PFX
"
MinMult(x10)=%d MaxMult(x10)=%d
\n
"
,
minmult
,
maxmult
);
dprintk
(
KERN_INFO
"longhaul:
Lowestspeed=%d Highestspeed=%d
\n
"
,
dprintk
(
KERN_INFO
PFX
"
Lowestspeed=%d Highestspeed=%d
\n
"
,
lowest_speed
,
highest_speed
);
longhaul_table
=
kmalloc
((
numscales
+
1
)
*
sizeof
(
struct
cpufreq_frequency_table
),
GFP_KERNEL
);
...
...
@@ -475,25 +477,25 @@ static void __init longhaul_setup_voltagescaling (unsigned long lo, unsigned lon
vrmrev
=
(
lo
&
(
1
<<
15
))
>>
15
;
if
(
minvid
==
0
||
maxvid
==
0
)
{
printk
(
"longhaul:
Bogus values Min:%d.%03d Max:%d.%03d. "
printk
(
KERN_INFO
PFX
"
Bogus values Min:%d.%03d Max:%d.%03d. "
"Voltage scaling disabled.
\n
"
,
minvid
/
1000
,
minvid
%
1000
,
maxvid
/
1000
,
maxvid
%
1000
);
return
;
}
if
(
minvid
==
maxvid
)
{
printk
(
"longhaul:
Claims to support voltage scaling but min & max are "
printk
(
KERN_INFO
PFX
"
Claims to support voltage scaling but min & max are "
"both %d.%03d. Voltage scaling disabled
\n
"
,
maxvid
/
1000
,
maxvid
%
1000
);
return
;
}
if
(
vrmrev
==
0
)
{
dprintk
(
KERN_INFO
"longhaul:
VRM 8.5 : "
);
dprintk
(
KERN_INFO
PFX
"
VRM 8.5 : "
);
memcpy
(
voltage_table
,
vrm85scales
,
sizeof
(
voltage_table
));
numvscales
=
(
voltage_table
[
maxvid
]
-
voltage_table
[
minvid
])
/
25
;
}
else
{
dprintk
(
KERN_INFO
"longhaul:
Mobile VRM : "
);
dprintk
(
KERN_INFO
PFX
"
Mobile VRM : "
);
memcpy
(
voltage_table
,
mobilevrmscales
,
sizeof
(
voltage_table
));
numvscales
=
(
voltage_table
[
maxvid
]
-
voltage_table
[
minvid
])
/
5
;
}
...
...
@@ -574,7 +576,7 @@ static int longhaul_cpu_init (struct cpufreq_policy *policy)
break
;
}
printk
(
KERN_INFO
"longhaul:
VIA CPU detected. Longhaul version %d supported
\n
"
,
longhaul
);
printk
(
KERN_INFO
PFX
"
VIA CPU detected. Longhaul version %d supported
\n
"
,
longhaul
);
if
(
longhaul
==
2
||
longhaul
==
3
)
{
unsigned
long
lo
,
hi
;
...
...
@@ -616,7 +618,7 @@ static int __init longhaul_init (void)
case
8
:
return
-
ENODEV
;
default:
printk
(
KERN_INFO
"longhaul:
Unknown VIA CPU. Contact davej@suse.de
\n
"
);
printk
(
KERN_INFO
PFX
"
Unknown VIA CPU. Contact davej@suse.de
\n
"
);
}
return
-
ENODEV
;
...
...
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