Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e19717fe
Commit
e19717fe
authored
Feb 06, 2008
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Add missing printk levels to e_powersaver
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
89c04849
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
arch/x86/kernel/cpu/cpufreq/e_powersaver.c
arch/x86/kernel/cpu/cpufreq/e_powersaver.c
+12
-12
No files found.
arch/x86/kernel/cpu/cpufreq/e_powersaver.c
View file @
e19717fe
...
...
@@ -165,7 +165,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
return
-
ENODEV
;
/* Check brand */
printk
(
"eps: Detected VIA "
);
printk
(
KERN_INFO
"eps: Detected VIA "
);
switch
(
c
->
x86_model
)
{
case
10
:
...
...
@@ -182,19 +182,19 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
switch
(
brand
)
{
case
EPS_BRAND_C7M
:
printk
(
"C7-M
\n
"
);
printk
(
KERN_CONT
"C7-M
\n
"
);
break
;
case
EPS_BRAND_C7
:
printk
(
"C7
\n
"
);
printk
(
KERN_CONT
"C7
\n
"
);
break
;
case
EPS_BRAND_EDEN
:
printk
(
"Eden
\n
"
);
printk
(
KERN_CONT
"Eden
\n
"
);
break
;
case
EPS_BRAND_C7D
:
printk
(
KERN_CONT
"C7-D
\n
"
);
break
;
case
EPS_BRAND_C3
:
printk
(
"C3
\n
"
);
printk
(
KERN_CONT
"C3
\n
"
);
return
-
ENODEV
;
break
;
}
...
...
@@ -206,7 +206,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
/* Can be locked at 0 */
rdmsrl
(
MSR_IA32_MISC_ENABLE
,
val
);
if
(
!
(
val
&
1
<<
16
))
{
printk
(
"eps: Can't enable Enhanced PowerSaver
\n
"
);
printk
(
KERN_INFO
"eps: Can't enable Enhanced PowerSaver
\n
"
);
return
-
ENODEV
;
}
}
...
...
@@ -214,19 +214,19 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
/* Print voltage and multiplier */
rdmsr
(
MSR_IA32_PERF_STATUS
,
lo
,
hi
);
current_voltage
=
lo
&
0xff
;
printk
(
"eps: Current voltage = %dmV
\n
"
,
current_voltage
*
16
+
700
);
printk
(
KERN_INFO
"eps: Current voltage = %dmV
\n
"
,
current_voltage
*
16
+
700
);
current_multiplier
=
(
lo
>>
8
)
&
0xff
;
printk
(
"eps: Current multiplier = %d
\n
"
,
current_multiplier
);
printk
(
KERN_INFO
"eps: Current multiplier = %d
\n
"
,
current_multiplier
);
/* Print limits */
max_voltage
=
hi
&
0xff
;
printk
(
"eps: Highest voltage = %dmV
\n
"
,
max_voltage
*
16
+
700
);
printk
(
KERN_INFO
"eps: Highest voltage = %dmV
\n
"
,
max_voltage
*
16
+
700
);
max_multiplier
=
(
hi
>>
8
)
&
0xff
;
printk
(
"eps: Highest multiplier = %d
\n
"
,
max_multiplier
);
printk
(
KERN_INFO
"eps: Highest multiplier = %d
\n
"
,
max_multiplier
);
min_voltage
=
(
hi
>>
16
)
&
0xff
;
printk
(
"eps: Lowest voltage = %dmV
\n
"
,
min_voltage
*
16
+
700
);
printk
(
KERN_INFO
"eps: Lowest voltage = %dmV
\n
"
,
min_voltage
*
16
+
700
);
min_multiplier
=
(
hi
>>
24
)
&
0xff
;
printk
(
"eps: Lowest multiplier = %d
\n
"
,
min_multiplier
);
printk
(
KERN_INFO
"eps: Lowest multiplier = %d
\n
"
,
min_multiplier
);
/* Sanity checks */
if
(
current_multiplier
==
0
||
max_multiplier
==
0
...
...
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