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
1b84eba4
Commit
1b84eba4
authored
Mar 20, 2004
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
1afab090
16aa2ed9
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
40 deletions
+31
-40
arch/i386/kernel/acpi/boot.c
arch/i386/kernel/acpi/boot.c
+2
-2
arch/i386/kernel/dmi_scan.c
arch/i386/kernel/dmi_scan.c
+6
-9
arch/i386/kernel/setup.c
arch/i386/kernel/setup.c
+4
-5
arch/ia64/kernel/acpi.c
arch/ia64/kernel/acpi.c
+0
-2
drivers/acpi/bus.c
drivers/acpi/bus.c
+2
-17
drivers/acpi/numa.c
drivers/acpi/numa.c
+9
-2
drivers/char/sonypi.h
drivers/char/sonypi.h
+0
-1
include/acpi/acpi_bus.h
include/acpi/acpi_bus.h
+0
-2
include/asm-i386/acpi.h
include/asm-i386/acpi.h
+3
-0
include/asm-ia64/acpi.h
include/asm-ia64/acpi.h
+2
-0
include/asm-x86_64/acpi.h
include/asm-x86_64/acpi.h
+3
-0
No files found.
arch/i386/kernel/acpi/boot.c
View file @
1b84eba4
...
...
@@ -668,7 +668,7 @@ acpi_boot_init (void)
*/
error
=
acpi_table_init
();
if
(
error
)
{
acpi_disabled
=
1
;
disable_acpi
()
;
return
error
;
}
...
...
@@ -680,7 +680,7 @@ acpi_boot_init (void)
error
=
acpi_blacklisted
();
if
(
error
)
{
printk
(
KERN_WARNING
PREFIX
"BIOS listed in blacklist, disabling ACPI support
\n
"
);
acpi_disabled
=
1
;
disable_acpi
()
;
return
error
;
}
...
...
arch/i386/kernel/dmi_scan.c
View file @
1b84eba4
...
...
@@ -523,13 +523,13 @@ static __init int print_if_true(struct dmi_blacklist *d)
#ifdef CONFIG_ACPI_BOOT
extern
int
acpi_
disabled
,
acpi_
force
;
extern
int
acpi_force
;
static
__init
__attribute__
((
unused
))
int
d
isable_acpi
(
struct
dmi_blacklist
*
d
)
static
__init
__attribute__
((
unused
))
int
d
mi_disable_acpi
(
struct
dmi_blacklist
*
d
)
{
if
(
!
acpi_force
)
{
printk
(
KERN_NOTICE
"%s detected: acpi off
\n
"
,
d
->
ident
);
acpi_disabled
=
1
;
disable_acpi
()
;
}
else
{
printk
(
KERN_NOTICE
"Warning: DMI blacklist says broken, but acpi forced
\n
"
);
...
...
@@ -537,8 +537,6 @@ static __init __attribute__((unused)) int disable_acpi(struct dmi_blacklist *d)
return
0
;
}
extern
int
acpi_ht
;
/*
* Limit ACPI to CPU enumeration for HT
*/
...
...
@@ -546,7 +544,7 @@ static __init __attribute__((unused)) int force_acpi_ht(struct dmi_blacklist *d)
{
if
(
!
acpi_force
)
{
printk
(
KERN_NOTICE
"%s detected: force use of acpi=ht
\n
"
,
d
->
ident
);
acpi_disabled
=
1
;
disable_acpi
();
acpi_ht
=
1
;
}
else
{
printk
(
KERN_NOTICE
...
...
@@ -933,7 +931,7 @@ static __initdata struct dmi_blacklist dmi_blacklist[]={
* Boxes that need ACPI disabled
*/
{
disable_acpi
,
"IBM Thinkpad"
,
{
{
d
mi_d
isable_acpi
,
"IBM Thinkpad"
,
{
MATCH
(
DMI_BOARD_VENDOR
,
"IBM"
),
MATCH
(
DMI_BOARD_NAME
,
"2629H1G"
),
NO_MATCH
,
NO_MATCH
}},
...
...
@@ -1063,8 +1061,7 @@ static __init void dmi_check_blacklist(void)
if
(
disable
&&
!
acpi_force
)
{
printk
(
KERN_NOTICE
"ACPI disabled because your bios is from %s and too old
\n
"
,
s
);
printk
(
KERN_NOTICE
"You can enable it with acpi=force
\n
"
);
acpi_disabled
=
1
;
acpi_ht
=
0
;
disable_acpi
();
}
}
}
...
...
arch/i386/kernel/setup.c
View file @
1b84eba4
...
...
@@ -83,7 +83,6 @@ EXPORT_SYMBOL_GPL(mmu_cr4_features);
EXPORT_SYMBOL
(
acpi_disabled
);
#ifdef CONFIG_ACPI_BOOT
extern
int
__initdata
acpi_ht
;
int
__initdata
acpi_force
=
0
;
#endif
...
...
@@ -575,14 +574,13 @@ static void __init parse_cmdline_early (char ** cmdline_p)
#ifdef CONFIG_ACPI_BOOT
/* "acpi=off" disables both ACPI table parsing and interpreter */
else
if
(
!
memcmp
(
from
,
"acpi=off"
,
8
))
{
acpi_ht
=
0
;
acpi_disabled
=
1
;
disable_acpi
();
}
/* acpi=force to over-ride black-list */
else
if
(
!
memcmp
(
from
,
"acpi=force"
,
10
))
{
acpi_force
=
1
;
acpi_ht
=
1
;
acpi_ht
=
1
;
acpi_disabled
=
0
;
}
...
...
@@ -593,8 +591,9 @@ static void __init parse_cmdline_early (char ** cmdline_p)
/* Limit ACPI just to boot-time to enable HT */
else
if
(
!
memcmp
(
from
,
"acpi=ht"
,
7
))
{
if
(
!
acpi_force
)
disable_acpi
();
acpi_ht
=
1
;
if
(
!
acpi_force
)
acpi_disabled
=
1
;
}
/* "pci=noacpi" disables ACPI interrupt routing */
...
...
arch/ia64/kernel/acpi.c
View file @
1b84eba4
...
...
@@ -62,8 +62,6 @@ void (*pm_power_off) (void);
unsigned
char
acpi_kbd_controller_present
=
1
;
unsigned
char
acpi_legacy_devices
;
int
acpi_disabled
;
/* XXX this shouldn't be needed---we can't boot without ACPI! */
const
char
*
acpi_get_sysname
(
void
)
{
...
...
drivers/acpi/bus.c
View file @
1b84eba4
...
...
@@ -704,29 +704,14 @@ static int __init acpi_init (void)
pm_active
=
1
;
else
{
printk
(
KERN_INFO
PREFIX
"APM is already active, exiting
\n
"
);
acpi_disabled
=
1
;
disable_acpi
()
;
result
=
-
ENODEV
;
}
#endif
}
else
acpi_disabled
=
1
;
disable_acpi
()
;
return_VALUE
(
result
);
}
static
int
__init
acpi_setup
(
char
*
str
)
{
while
(
str
&&
*
str
)
{
if
(
strncmp
(
str
,
"off"
,
3
)
==
0
)
acpi_disabled
=
1
;
str
=
strchr
(
str
,
','
);
if
(
str
)
str
+=
strspn
(
str
,
",
\t
"
);
}
return
1
;
}
subsys_initcall
(
acpi_init
);
__setup
(
"acpi="
,
acpi_setup
);
drivers/acpi/numa.c
View file @
1b84eba4
...
...
@@ -32,12 +32,19 @@
#include <acpi/acpi_bus.h>
#include <acpi/acmacros.h>
#define ACPI_NUMA 0x80000000
#define _COMPONENT ACPI_NUMA
ACPI_MODULE_NAME
(
"numa"
)
extern
int
__init
acpi_table_parse_madt_family
(
enum
acpi_table_id
id
,
unsigned
long
madt_size
,
int
entry_id
,
acpi_madt_entry_handler
handler
,
unsigned
int
max_entries
);
void
__init
acpi_table_print_srat_entry
(
acpi_table_entry_header
*
header
)
{
ACPI_FUNCTION_NAME
(
"acpi_table_print_srat_entry"
);
if
(
!
header
)
return
;
...
...
@@ -47,7 +54,7 @@ acpi_table_print_srat_entry (
{
struct
acpi_table_processor_affinity
*
p
=
(
struct
acpi_table_processor_affinity
*
)
header
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
"SRAT Processor (id[0x%02x] eid[0x%02x]) in proximity domain %d %s
\n
"
,
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"SRAT Processor (id[0x%02x] eid[0x%02x]) in proximity domain %d %s
\n
"
,
p
->
apic_id
,
p
->
lsapic_eid
,
p
->
proximity_domain
,
p
->
flags
.
enabled
?
"enabled"
:
"disabled"
));
}
...
...
@@ -57,7 +64,7 @@ acpi_table_print_srat_entry (
{
struct
acpi_table_memory_affinity
*
p
=
(
struct
acpi_table_memory_affinity
*
)
header
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
"SRAT Memory (0x%08x%08x length 0x%08x%08x type 0x%x) in proximity domain %d %s%s
\n
"
,
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"SRAT Memory (0x%08x%08x length 0x%08x%08x type 0x%x) in proximity domain %d %s%s
\n
"
,
p
->
base_addr_hi
,
p
->
base_addr_lo
,
p
->
length_hi
,
p
->
length_lo
,
p
->
memory_type
,
p
->
proximity_domain
,
p
->
flags
.
enabled
?
"enabled"
:
"disabled"
,
...
...
drivers/char/sonypi.h
View file @
1b84eba4
...
...
@@ -396,7 +396,6 @@ struct sonypi_device {
}
#ifdef CONFIG_ACPI
extern
int
acpi_disabled
;
#define SONYPI_ACPI_ACTIVE (!acpi_disabled)
#else
#define SONYPI_ACPI_ACTIVE 0
...
...
include/acpi/acpi_bus.h
View file @
1b84eba4
...
...
@@ -32,8 +32,6 @@
#define PREFIX "ACPI: "
extern
int
acpi_disabled
;
/* TBD: Make dynamic */
#define ACPI_MAX_HANDLES 10
struct
acpi_handle_list
{
...
...
include/asm-i386/acpi.h
View file @
1b84eba4
...
...
@@ -116,6 +116,9 @@ extern int acpi_lapic;
extern
int
acpi_ioapic
;
extern
int
acpi_noirq
;
extern
int
acpi_strict
;
extern
int
acpi_disabled
;
extern
int
acpi_ht
;
static
inline
void
disable_acpi
(
void
)
{
acpi_disabled
=
1
;
acpi_ht
=
0
;
}
/* Fixmap pages to reserve for ACPI boot-time tables (see fixmap.h) */
#define FIX_ACPI_PAGES 4
...
...
include/asm-ia64/acpi.h
View file @
1b84eba4
...
...
@@ -88,7 +88,9 @@ ia64_acpi_release_global_lock (unsigned int *lock)
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Acq) \
((Acq) = ia64_acpi_release_global_lock((unsigned int *) GLptr))
#define acpi_disabled 0
/* ACPI always enabled on IA64 */
#define acpi_strict 1
/* no ACPI spec workarounds on IA64 */
static
inline
void
disable_acpi
(
void
)
{
}
const
char
*
acpi_get_sysname
(
void
);
int
acpi_request_vector
(
u32
int_type
);
...
...
include/asm-x86_64/acpi.h
View file @
1b84eba4
...
...
@@ -105,6 +105,9 @@ extern int acpi_lapic;
extern
int
acpi_ioapic
;
extern
int
acpi_noirq
;
extern
int
acpi_strict
;
extern
int
acpi_disabled
;
extern
int
acpi_ht
;
static
inline
void
disable_acpi
(
void
)
{
acpi_disabled
=
1
;
acpi_ht
=
0
;
}
/* Fixmap pages to reserve for ACPI boot-time tables (see fixmap.h) */
#define FIX_ACPI_PAGES 4
...
...
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