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
fa759772
Commit
fa759772
authored
Oct 07, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] powernow-k8 Namespace cleanups.
More bits from Pavel. drv_* in oopses is pretty uninformative.
parent
b5111f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+13
-13
arch/i386/kernel/cpu/cpufreq/powernow-k8.h
arch/i386/kernel/cpu/cpufreq/powernow-k8.h
+3
-3
No files found.
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
View file @
fa759772
...
...
@@ -72,9 +72,9 @@ static u32 batps; /* limit on the number of p states when on battery */
/* - set by BIOS in the PSB/PST */
static
struct
cpufreq_driver
cpufreq_amd64_driver
=
{
.
verify
=
drv
_verify
,
.
target
=
drv
_target
,
.
init
=
drv
_cpu_init
,
.
verify
=
powernowk8
_verify
,
.
target
=
powernowk8
_target
,
.
init
=
powernowk8
_cpu_init
,
.
name
=
"cpufreq-amd64"
,
.
owner
=
THIS_MODULE
,
};
...
...
@@ -90,7 +90,7 @@ find_freq_from_fid(u32 fid)
}
/* Return a fid matching an input frequency in MHz */
u32
static
u32
find_fid_from_freq
(
u32
freq
)
{
return
(
freq
-
800
)
/
100
;
...
...
@@ -861,7 +861,7 @@ transition_frequency(u32 * preq, u32 * pmin, u32 * pmax, u32 searchup)
/* Driver entry point to switch to the target frequency */
static
int
drv
_target
(
struct
cpufreq_policy
*
pol
,
unsigned
targfreq
,
unsigned
relation
)
powernowk8
_target
(
struct
cpufreq_policy
*
pol
,
unsigned
targfreq
,
unsigned
relation
)
{
u32
checkfid
=
currfid
;
u32
checkvid
=
currvid
;
...
...
@@ -909,7 +909,7 @@ drv_target(struct cpufreq_policy *pol, unsigned targfreq, unsigned relation)
/* Driver entry point to verify the policy and range of frequencies */
static
int
drv
_verify
(
struct
cpufreq_policy
*
pol
)
powernowk8
_verify
(
struct
cpufreq_policy
*
pol
)
{
u32
min
=
pol
->
min
/
1000
;
u32
max
=
pol
->
max
/
1000
;
...
...
@@ -948,7 +948,7 @@ drv_verify(struct cpufreq_policy *pol)
/* per CPU init entry point to the driver */
static
int
__init
drv
_cpu_init
(
struct
cpufreq_policy
*
pol
)
powernowk8
_cpu_init
(
struct
cpufreq_policy
*
pol
)
{
if
(
pol
->
cpu
!=
0
)
{
printk
(
KERN_ERR
PFX
"init not cpu 0
\n
"
);
...
...
@@ -981,7 +981,7 @@ drv_cpu_init(struct cpufreq_policy *pol)
/* driver entry point for init */
static
int
__init
drv
_init
(
void
)
powernowk8
_init
(
void
)
{
int
rc
;
...
...
@@ -995,7 +995,7 @@ drv_init(void)
return
rc
;
if
(
pending_bit_stuck
())
{
printk
(
KERN_ERR
PFX
"
drv
_init fail, change pending bit set
\n
"
);
printk
(
KERN_ERR
PFX
"
powernowk8
_init fail, change pending bit set
\n
"
);
kfree
(
ppst
);
return
-
EIO
;
}
...
...
@@ -1005,9 +1005,9 @@ drv_init(void)
/* driver entry point for term */
static
void
__exit
drv
_exit
(
void
)
powernowk8
_exit
(
void
)
{
dprintk
(
KERN_INFO
PFX
"
drv
_exit
\n
"
);
dprintk
(
KERN_INFO
PFX
"
powernowk8
_exit
\n
"
);
cpufreq_unregister_driver
(
&
cpufreq_amd64_driver
);
kfree
(
ppst
);
...
...
@@ -1017,5 +1017,5 @@ MODULE_AUTHOR("Paul Devriendt <paul.devriendt@amd.com>");
MODULE_DESCRIPTION
(
"AMD Athlon 64 and Opteron processor frequency driver."
);
MODULE_LICENSE
(
"GPL"
);
module_init
(
drv
_init
);
module_exit
(
drv
_exit
);
module_init
(
powernowk8
_init
);
module_exit
(
powernowk8
_exit
);
arch/i386/kernel/cpu/cpufreq/powernow-k8.h
View file @
fa759772
...
...
@@ -120,7 +120,7 @@ struct pst_s {
static
inline
int
core_voltage_pre_transition
(
u32
reqvid
);
static
inline
int
core_voltage_post_transition
(
u32
reqvid
);
static
inline
int
core_frequency_transition
(
u32
reqfid
);
static
int
drv
_verify
(
struct
cpufreq_policy
*
pol
);
static
int
drv
_target
(
struct
cpufreq_policy
*
pol
,
unsigned
targfreq
,
static
int
powernowk8
_verify
(
struct
cpufreq_policy
*
pol
);
static
int
powernowk8
_target
(
struct
cpufreq_policy
*
pol
,
unsigned
targfreq
,
unsigned
relation
);
static
int
__init
drv
_cpu_init
(
struct
cpufreq_policy
*
pol
);
static
int
__init
powernowk8
_cpu_init
(
struct
cpufreq_policy
*
pol
);
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