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
fbdebc89
Commit
fbdebc89
authored
Jul 13, 2003
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: Parse SSDTs in order discovered, as opposed to reverse order (Hrvoje Habjanic)
parent
5fdd86ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
12 deletions
+30
-12
drivers/acpi/tables/tbinstal.c
drivers/acpi/tables/tbinstal.c
+30
-12
No files found.
drivers/acpi/tables/tbinstal.c
View file @
fbdebc89
...
@@ -271,22 +271,40 @@ acpi_tb_init_table_descriptor (
...
@@ -271,22 +271,40 @@ acpi_tb_init_table_descriptor (
if
(
list_head
->
next
)
{
if
(
list_head
->
next
)
{
return_ACPI_STATUS
(
AE_ALREADY_EXISTS
);
return_ACPI_STATUS
(
AE_ALREADY_EXISTS
);
}
}
}
/*
table_desc
->
next
=
list_head
->
next
;
* Link the new table in to the list of tables of this type.
list_head
->
next
=
table_desc
;
* Just insert at the start of the list, order unimportant.
*
* table_desc->Prev is already NULL from calloc()
*/
table_desc
->
next
=
list_head
->
next
;
list_head
->
next
=
table_desc
;
if
(
table_desc
->
next
)
{
if
(
table_desc
->
next
)
{
table_desc
->
next
->
prev
=
table_desc
;
table_desc
->
next
->
prev
=
table_desc
;
}
list_head
->
count
++
;
}
}
else
{
/*
* Link the new table in to the list of tables of this type.
* Insert at the end of the list, order IS IMPORTANT.
*
* table_desc->Prev & Next are already NULL from calloc()
*/
list_head
->
count
++
;
if
(
!
list_head
->
next
)
{
list_head
->
next
=
table_desc
;
}
else
{
table_desc
->
next
=
list_head
->
next
;
list_head
->
count
++
;
while
(
table_desc
->
next
->
next
)
{
table_desc
->
next
=
table_desc
->
next
->
next
;
}
table_desc
->
next
->
next
=
table_desc
;
table_desc
->
prev
=
table_desc
->
next
;
table_desc
->
next
=
NULL
;
}
}
/* Finish initialization of the table descriptor */
/* Finish initialization of the table descriptor */
...
...
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