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
7f3a3f1e
Commit
7f3a3f1e
authored
Apr 06, 2004
by
Dave Jones
Committed by
Dave Jones
Apr 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Change powernow-k8 over to use its new KHz frequency helpers
parent
cac99d4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+5
-4
No files found.
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
View file @
7f3a3f1e
...
@@ -697,19 +697,20 @@ static int transition_frequency(struct powernow_k8_data *data, unsigned int inde
...
@@ -697,19 +697,20 @@ static int transition_frequency(struct powernow_k8_data *data, unsigned int inde
return
1
;
return
1
;
}
}
dprintk
(
KERN_DEBUG
PFX
"changing to fid 0x%x, vid 0x%x
\n
"
,
fid
,
vid
);
dprintk
(
KERN_DEBUG
PFX
"cpu %d, changing to fid 0x%x, vid 0x%x
\n
"
,
smp_processor_id
(),
fid
,
vid
);
freqs
.
cpu
=
data
->
cpu
;
freqs
.
cpu
=
data
->
cpu
;
freqs
.
old
=
find_freq_from_fid
(
data
->
currfid
);
freqs
.
old
=
find_
khz_
freq_from_fid
(
data
->
currfid
);
freqs
.
new
=
find_freq_from_fid
(
fid
);
freqs
.
new
=
find_
khz_
freq_from_fid
(
fid
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_PRECHANGE
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_PRECHANGE
);
down
(
&
fidvid_sem
);
down
(
&
fidvid_sem
);
res
=
transition_fid_vid
(
data
,
fid
,
vid
);
res
=
transition_fid_vid
(
data
,
fid
,
vid
);
up
(
&
fidvid_sem
);
up
(
&
fidvid_sem
);
freqs
.
new
=
find_freq_from_fid
(
data
->
currfid
);
freqs
.
new
=
find_
khz_
freq_from_fid
(
data
->
currfid
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_POSTCHANGE
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_POSTCHANGE
);
return
res
;
return
res
;
...
...
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