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
3d8cfd21
Commit
3d8cfd21
authored
Sep 29, 2003
by
Len Brown
Committed by
Len Brown
Sep 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] GV3 IO port is 16-bits (Venkatesh Pallipadi)
parent
b5e48980
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
arch/i386/kernel/cpu/cpufreq/acpi.c
arch/i386/kernel/cpu/cpufreq/acpi.c
+8
-8
No files found.
arch/i386/kernel/cpu/cpufreq/acpi.c
View file @
3d8cfd21
...
...
@@ -230,7 +230,7 @@ acpi_processor_set_performance (
int
state
)
{
u16
port
=
0
;
u
8
value
=
0
;
u
16
value
=
0
;
int
i
=
0
;
struct
cpufreq_freqs
cpufreq_freqs
;
...
...
@@ -281,9 +281,9 @@ acpi_processor_set_performance (
value
=
(
u16
)
perf
->
states
[
state
].
control
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Writing 0x%0
2
x to port 0x%04x
\n
"
,
value
,
port
));
"Writing 0x%0
4
x to port 0x%04x
\n
"
,
value
,
port
));
out
b
(
value
,
port
);
out
w
(
value
,
port
);
/*
* Then we read the 'status_register' and compare the value with the
...
...
@@ -295,12 +295,12 @@ acpi_processor_set_performance (
port
=
perf
->
status_register
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Looking for 0x%0
2
x from port 0x%04x
\n
"
,
(
u
8
)
perf
->
states
[
state
].
status
,
port
));
"Looking for 0x%0
4
x from port 0x%04x
\n
"
,
(
u
16
)
perf
->
states
[
state
].
status
,
port
));
for
(
i
=
0
;
i
<
100
;
i
++
)
{
value
=
in
b
(
port
);
if
(
value
==
(
u
8
)
perf
->
states
[
state
].
status
)
value
=
in
w
(
port
);
if
(
value
==
(
u
16
)
perf
->
states
[
state
].
status
)
break
;
udelay
(
10
);
}
...
...
@@ -308,7 +308,7 @@ acpi_processor_set_performance (
/* notify cpufreq */
cpufreq_notify_transition
(
&
cpufreq_freqs
,
CPUFREQ_POSTCHANGE
);
if
(
value
!=
perf
->
states
[
state
].
status
)
{
if
(
value
!=
(
u16
)
perf
->
states
[
state
].
status
)
{
unsigned
int
tmp
=
cpufreq_freqs
.
new
;
cpufreq_freqs
.
new
=
cpufreq_freqs
.
old
;
cpufreq_freqs
.
old
=
tmp
;
...
...
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