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
c9b8c871
Commit
c9b8c871
authored
Jan 17, 2009
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] checkpatch cleanups for e_powersaver
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
04cd1a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
arch/x86/kernel/cpu/cpufreq/e_powersaver.c
arch/x86/kernel/cpu/cpufreq/e_powersaver.c
+12
-9
No files found.
arch/x86/kernel/cpu/cpufreq/e_powersaver.c
View file @
c9b8c871
...
@@ -12,12 +12,12 @@
...
@@ -12,12 +12,12 @@
#include <linux/cpufreq.h>
#include <linux/cpufreq.h>
#include <linux/ioport.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/timex.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <asm/msr.h>
#include <asm/msr.h>
#include <asm/tsc.h>
#include <asm/tsc.h>
#include <asm/timex.h>
#include <asm/io.h>
#include <asm/delay.h>
#define EPS_BRAND_C7M 0
#define EPS_BRAND_C7M 0
#define EPS_BRAND_C7 1
#define EPS_BRAND_C7 1
...
@@ -184,7 +184,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
...
@@ -184,7 +184,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
break
;
break
;
}
}
switch
(
brand
)
{
switch
(
brand
)
{
case
EPS_BRAND_C7M
:
case
EPS_BRAND_C7M
:
printk
(
KERN_CONT
"C7-M
\n
"
);
printk
(
KERN_CONT
"C7-M
\n
"
);
break
;
break
;
...
@@ -218,17 +218,20 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
...
@@ -218,17 +218,20 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
/* Print voltage and multiplier */
/* Print voltage and multiplier */
rdmsr
(
MSR_IA32_PERF_STATUS
,
lo
,
hi
);
rdmsr
(
MSR_IA32_PERF_STATUS
,
lo
,
hi
);
current_voltage
=
lo
&
0xff
;
current_voltage
=
lo
&
0xff
;
printk
(
KERN_INFO
"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
;
current_multiplier
=
(
lo
>>
8
)
&
0xff
;
printk
(
KERN_INFO
"eps: Current multiplier = %d
\n
"
,
current_multiplier
);
printk
(
KERN_INFO
"eps: Current multiplier = %d
\n
"
,
current_multiplier
);
/* Print limits */
/* Print limits */
max_voltage
=
hi
&
0xff
;
max_voltage
=
hi
&
0xff
;
printk
(
KERN_INFO
"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
;
max_multiplier
=
(
hi
>>
8
)
&
0xff
;
printk
(
KERN_INFO
"eps: Highest multiplier = %d
\n
"
,
max_multiplier
);
printk
(
KERN_INFO
"eps: Highest multiplier = %d
\n
"
,
max_multiplier
);
min_voltage
=
(
hi
>>
16
)
&
0xff
;
min_voltage
=
(
hi
>>
16
)
&
0xff
;
printk
(
KERN_INFO
"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
;
min_multiplier
=
(
hi
>>
24
)
&
0xff
;
printk
(
KERN_INFO
"eps: Lowest multiplier = %d
\n
"
,
min_multiplier
);
printk
(
KERN_INFO
"eps: Lowest multiplier = %d
\n
"
,
min_multiplier
);
...
@@ -318,7 +321,7 @@ static int eps_cpu_exit(struct cpufreq_policy *policy)
...
@@ -318,7 +321,7 @@ static int eps_cpu_exit(struct cpufreq_policy *policy)
return
0
;
return
0
;
}
}
static
struct
freq_attr
*
eps_attr
[]
=
{
static
struct
freq_attr
*
eps_attr
[]
=
{
&
cpufreq_freq_attr_scaling_available_freqs
,
&
cpufreq_freq_attr_scaling_available_freqs
,
NULL
,
NULL
,
};
};
...
@@ -356,7 +359,7 @@ static void __exit eps_exit(void)
...
@@ -356,7 +359,7 @@ static void __exit eps_exit(void)
cpufreq_unregister_driver
(
&
eps_driver
);
cpufreq_unregister_driver
(
&
eps_driver
);
}
}
MODULE_AUTHOR
(
"Rafa Bilski <rafalbilski@interia.pl>"
);
MODULE_AUTHOR
(
"Rafa
l
Bilski <rafalbilski@interia.pl>"
);
MODULE_DESCRIPTION
(
"Enhanced PowerSaver driver for VIA C7 CPU's."
);
MODULE_DESCRIPTION
(
"Enhanced PowerSaver driver for VIA C7 CPU's."
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
...
...
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