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
12b9e486
Commit
12b9e486
authored
Sep 29, 2003
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge intel.com:/home/lenb/src/linux-acpi-test-2.6.0
into intel.com:/home/lenb/bk/linux-acpi-test-2.6.0
parents
39d7c3e1
3d8cfd21
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
44 deletions
+18
-44
arch/i386/kernel/cpu/cpufreq/acpi.c
arch/i386/kernel/cpu/cpufreq/acpi.c
+8
-8
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+2
-28
drivers/acpi/pci_link.c
drivers/acpi/pci_link.c
+8
-8
No files found.
arch/i386/kernel/cpu/cpufreq/acpi.c
View file @
12b9e486
...
...
@@ -231,7 +231,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
;
...
...
@@ -282,9 +282,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
...
...
@@ -296,12 +296,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
);
}
...
...
@@ -309,7 +309,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
;
...
...
drivers/acpi/Kconfig
View file @
12b9e486
...
...
@@ -40,41 +40,15 @@ config ACPI
available at:
<http://www.acpi.info>
config ACPI_HT_ONLY
bool "Restrict ACPI to minimum boot code to enable HT"
depends on X86
depends on ACPI
depends on SMP
default n
---help---
ACPI enumerates both logical (a.k.a. Hyper-Threaded -- HT)
and physical processors. It is designed to obsolete several older
specifications, including the MultiProcessor Specification (MPS),
which supported only physical processors.
CONFIG_ACPI_HT_ONLY includes just the minimal ACPI boot-time code
necessary to enumerate logical processors and enable HT.
CONFIG_ACPI includes this, plus IO APIC enumeration,
and the hooks to run the ACPI AML interpreter for run-time events.
When CONFIG_ACPI is selected, the command-line option "acpi=ht"
is available to run just the ACPI boot-time code -- just as if
only CONFIG_ACPI_HT_ONLY were selected.
Note that "acpi=off" can be used to disable all ACPI code in the kernel.
config ACPI_BOOT
bool
depends on ACPI
depends on ACPI
|| X86_HT
default y
config ACPI_INTERPRETER
bool
depends on ACPI
depends on !IA64_SGI_SN
depends on !ACPI_HT_ONLY
default y
config ACPI_SLEEP
...
...
@@ -281,7 +255,7 @@ config ACPI_EFI
default y
config ACPI_RELAXED_AML
bool
bool
"Relaxed AML"
depends on ACPI_INTERPRETER
depends on !IA64_SGI_SN
default n
...
...
drivers/acpi/pci_link.c
View file @
12b9e486
...
...
@@ -500,7 +500,6 @@ static int acpi_pci_link_allocate(struct acpi_pci_link* link) {
irq
=
link
->
irq
.
active
;
}
else
{
irq
=
link
->
irq
.
possible
[
0
];
}
/*
* Select the best IRQ. This is done in reverse to promote
...
...
@@ -510,6 +509,7 @@ static int acpi_pci_link_allocate(struct acpi_pci_link* link) {
if
(
acpi_irq_penalty
[
irq
]
>
acpi_irq_penalty
[
link
->
irq
.
possible
[
i
]])
irq
=
link
->
irq
.
possible
[
i
];
}
}
/* Attempt to enable the link device at this IRQ. */
if
(
acpi_pci_link_set
(
link
,
irq
))
{
...
...
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