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
dd7a61c8
Commit
dd7a61c8
authored
Apr 02, 2004
by
Dave Jones
Committed by
Dave Jones
Apr 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] powernow-k8 whitespace changes.
Trying to get the diffsize down between me & Pavel.
parent
9ed7ef7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+10
-16
No files found.
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
View file @
dd7a61c8
...
@@ -79,8 +79,7 @@ static u32 find_freq_from_fid(u32 fid)
...
@@ -79,8 +79,7 @@ static u32 find_freq_from_fid(u32 fid)
/* Return the vco fid for an input fid */
/* Return the vco fid for an input fid */
static
u32
static
u32
convert_fid_to_vco_fid
(
u32
fid
)
convert_fid_to_vco_fid
(
u32
fid
)
{
{
if
(
fid
<
HI_FID_TABLE_BOTTOM
)
{
if
(
fid
<
HI_FID_TABLE_BOTTOM
)
{
return
8
+
(
2
*
fid
);
return
8
+
(
2
*
fid
);
...
@@ -90,11 +89,10 @@ convert_fid_to_vco_fid(u32 fid)
...
@@ -90,11 +89,10 @@ convert_fid_to_vco_fid(u32 fid)
}
}
/*
/*
* Return 1 if the pending bit is set. Unless we
are actually just told the
* Return 1 if the pending bit is set. Unless we
just instructed the processor
*
processor to transition a
state, seeing this bit set is really bad news.
*
to transition to a new
state, seeing this bit set is really bad news.
*/
*/
static
inline
int
static
inline
int
pending_bit_stuck
(
void
)
pending_bit_stuck
(
void
)
{
{
u32
lo
,
hi
;
u32
lo
,
hi
;
...
@@ -103,8 +101,8 @@ pending_bit_stuck(void)
...
@@ -103,8 +101,8 @@ pending_bit_stuck(void)
}
}
/*
/*
* Update the global current fid / vid values from the status msr.
Returns 1
* Update the global current fid / vid values from the status msr.
* on error.
*
Returns 1
on error.
*/
*/
static
int
static
int
query_current_values_with_pending_wait
(
void
)
query_current_values_with_pending_wait
(
void
)
...
@@ -728,8 +726,7 @@ transition_frequency(unsigned int index)
...
@@ -728,8 +726,7 @@ transition_frequency(unsigned int index)
}
}
/* Driver entry point to switch to the target frequency */
/* Driver entry point to switch to the target frequency */
static
int
static
int
powernowk8_target
(
struct
cpufreq_policy
*
pol
,
unsigned
targfreq
,
unsigned
relation
)
powernowk8_target
(
struct
cpufreq_policy
*
pol
,
unsigned
targfreq
,
unsigned
relation
)
{
{
u32
checkfid
=
currfid
;
u32
checkfid
=
currfid
;
u32
checkvid
=
currvid
;
u32
checkvid
=
currvid
;
...
@@ -846,10 +843,8 @@ static struct cpufreq_driver cpufreq_amd64_driver = {
...
@@ -846,10 +843,8 @@ static struct cpufreq_driver cpufreq_amd64_driver = {
.
attr
=
powernow_k8_attr
,
.
attr
=
powernow_k8_attr
,
};
};
/* driver entry point for init */
/* driver entry point for init */
static
int
__init
static
int
__init
powernowk8_init
(
void
)
powernowk8_init
(
void
)
{
{
int
rc
;
int
rc
;
...
@@ -869,10 +864,9 @@ powernowk8_init(void)
...
@@ -869,10 +864,9 @@ powernowk8_init(void)
}
}
/* driver entry point for term */
/* driver entry point for term */
static
void
__exit
static
void
__exit
powernowk8_exit
(
void
)
powernowk8_exit
(
void
)
{
{
dprintk
(
KERN_INFO
PFX
"
powernowk8_
exit
\n
"
);
dprintk
(
KERN_INFO
PFX
"exit
\n
"
);
cpufreq_unregister_driver
(
&
cpufreq_amd64_driver
);
cpufreq_unregister_driver
(
&
cpufreq_amd64_driver
);
}
}
...
...
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