Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
16071a07
Commit
16071a07
authored
Dec 01, 2005
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull 5452 into release branch
parents
b7639daf
cd8e2b48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+15
-0
No files found.
drivers/acpi/processor_core.c
View file @
16071a07
...
...
@@ -543,6 +543,8 @@ static int acpi_processor_get_info(struct acpi_processor *pr)
return_VALUE
(
0
);
}
static
void
*
processor_device_array
[
NR_CPUS
];
static
int
acpi_processor_start
(
struct
acpi_device
*
device
)
{
int
result
=
0
;
...
...
@@ -561,6 +563,19 @@ static int acpi_processor_start(struct acpi_device *device)
BUG_ON
((
pr
->
id
>=
NR_CPUS
)
||
(
pr
->
id
<
0
));
/*
* Buggy BIOS check
* ACPI id of processors can be reported wrongly by the BIOS.
* Don't trust it blindly
*/
if
(
processor_device_array
[
pr
->
id
]
!=
NULL
&&
processor_device_array
[
pr
->
id
]
!=
(
void
*
)
device
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"BIOS reporting wrong ACPI id"
"for the processor
\n
"
));
return_VALUE
(
-
ENODEV
);
}
processor_device_array
[
pr
->
id
]
=
(
void
*
)
device
;
processors
[
pr
->
id
]
=
pr
;
result
=
acpi_processor_add_fs
(
device
);
...
...
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