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
da2b17e6
Commit
da2b17e6
authored
Sep 13, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] use PFX macro in common printk's
parent
cda03be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
+7
-5
No files found.
arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
View file @
da2b17e6
...
...
@@ -23,6 +23,8 @@
#include "speedstep-lib.h"
#define PFX "speedstep-smi: "
/* speedstep system management interface port/command.
*
* These parameters are got from IST-SMI BIOS call.
...
...
@@ -234,7 +236,7 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)
/* fall back to speedstep_lib.c dection mechanism: try both states out */
unsigned
int
speedstep_processor
=
speedstep_detect_processor
();
dprintk
(
KERN_INFO
"speedstep-smi:
could not detect low and high frequencies by SMI call.
\n
"
);
dprintk
(
KERN_INFO
PFX
"
could not detect low and high frequencies by SMI call.
\n
"
);
if
(
!
speedstep_processor
)
return
-
ENODEV
;
...
...
@@ -244,10 +246,10 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)
&
speedstep_set_state
);
if
(
result
)
{
dprintk
(
KERN_INFO
"speedstep-smi:
could not detect two different speeds -- aborting.
\n
"
);
dprintk
(
KERN_INFO
PFX
"
could not detect two different speeds -- aborting.
\n
"
);
return
result
;
}
else
dprintk
(
KERN_INFO
"speedstep-smi:
workaround worked.
\n
"
);
dprintk
(
KERN_INFO
PFX
"
workaround worked.
\n
"
);
}
/* get current speed setting */
...
...
@@ -298,11 +300,11 @@ static int __init speedstep_init(void)
struct
cpuinfo_x86
*
c
=
cpu_data
;
if
(
c
->
x86_vendor
!=
X86_VENDOR_INTEL
)
{
printk
(
KERN_INFO
"speedstep-smi:
No Intel CPU detected.
\n
"
);
printk
(
KERN_INFO
PFX
"
No Intel CPU detected.
\n
"
);
return
-
ENODEV
;
}
dprintk
(
"speedstep-smi:
signature:0%.8lx, command:0lx%.8lx, event:0x%.8lx, perf_level:0x%.8lx.
\n
"
,
dprintk
(
KERN_DEBUG
PFX
"
signature:0%.8lx, command:0lx%.8lx, event:0x%.8lx, perf_level:0x%.8lx.
\n
"
,
ist_info
.
signature
,
ist_info
.
command
,
ist_info
.
event
,
ist_info
.
perf_level
);
...
...
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