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
36ac9d1a
Commit
36ac9d1a
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] Serialise fid/vid changes in powernow-k8 driver.
parent
8ccc19ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+5
-0
No files found.
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
View file @
36ac9d1a
...
@@ -37,6 +37,9 @@
...
@@ -37,6 +37,9 @@
#define VERSION "version 1.00.08a"
#define VERSION "version 1.00.08a"
#include "powernow-k8.h"
#include "powernow-k8.h"
/* serialize freq changes */
static
DECLARE_MUTEX
(
fidvid_sem
);
static
struct
powernow_k8_data
*
powernow_data
[
NR_CPUS
];
static
struct
powernow_k8_data
*
powernow_data
[
NR_CPUS
];
/* Return a frequency in MHz, given an input fid */
/* Return a frequency in MHz, given an input fid */
...
@@ -697,7 +700,9 @@ static int transition_frequency(struct powernow_k8_data *data, unsigned int inde
...
@@ -697,7 +700,9 @@ static int transition_frequency(struct powernow_k8_data *data, unsigned int inde
freqs
.
new
=
find_freq_from_fid
(
fid
);
freqs
.
new
=
find_freq_from_fid
(
fid
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_PRECHANGE
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_PRECHANGE
);
down
(
&
fidvid_sem
);
res
=
transition_fid_vid
(
data
,
fid
,
vid
);
res
=
transition_fid_vid
(
data
,
fid
,
vid
);
up
(
&
fidvid_sem
);
freqs
.
new
=
find_freq_from_fid
(
data
->
currfid
);
freqs
.
new
=
find_freq_from_fid
(
data
->
currfid
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_POSTCHANGE
);
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_POSTCHANGE
);
...
...
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