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
nexedi
linux
Commits
3c058d8b
Commit
3c058d8b
authored
Dec 22, 2005
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull owner_id into release branch
parents
db9ace70
9d6be4be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
drivers/acpi/utilities/utmisc.c
drivers/acpi/utilities/utmisc.c
+9
-9
include/acpi/acglobal.h
include/acpi/acglobal.h
+1
-1
No files found.
drivers/acpi/utilities/utmisc.c
View file @
3c058d8b
...
...
@@ -84,14 +84,14 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id)
/* Find a free owner ID */
for
(
i
=
0
;
i
<
32
;
i
++
)
{
if
(
!
(
acpi_gbl_owner_id_mask
&
(
1
<<
i
)))
{
for
(
i
=
0
;
i
<
64
;
i
++
)
{
if
(
!
(
acpi_gbl_owner_id_mask
&
(
1
ULL
<<
i
)))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_VALUES
,
"Current owner_id mask: %
8.8
X New ID: %2.2X
\n
"
,
"Current owner_id mask: %
16.16L
X New ID: %2.2X
\n
"
,
acpi_gbl_owner_id_mask
,
(
unsigned
int
)(
i
+
1
)));
acpi_gbl_owner_id_mask
|=
(
1
<<
i
);
acpi_gbl_owner_id_mask
|=
(
1
ULL
<<
i
);
*
owner_id
=
(
acpi_owner_id
)
(
i
+
1
);
goto
exit
;
}
...
...
@@ -106,7 +106,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id)
*/
*
owner_id
=
0
;
status
=
AE_OWNER_ID_LIMIT
;
ACPI_REPORT_ERROR
((
"Could not allocate new owner_id (
32
max), AE_OWNER_ID_LIMIT
\n
"
));
ACPI_REPORT_ERROR
((
"Could not allocate new owner_id (
64
max), AE_OWNER_ID_LIMIT
\n
"
));
exit:
(
void
)
acpi_ut_release_mutex
(
ACPI_MTX_CACHES
);
...
...
@@ -123,7 +123,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id)
* control method or unloading a table. Either way, we would
* ignore any error anyway.
*
* DESCRIPTION: Release a table or method owner ID. Valid IDs are 1 -
32
* DESCRIPTION: Release a table or method owner ID. Valid IDs are 1 -
64
*
******************************************************************************/
...
...
@@ -140,7 +140,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr)
/* Zero is not a valid owner_iD */
if
((
owner_id
==
0
)
||
(
owner_id
>
32
))
{
if
((
owner_id
==
0
)
||
(
owner_id
>
64
))
{
ACPI_REPORT_ERROR
((
"Invalid owner_id: %2.2X
\n
"
,
owner_id
));
return_VOID
;
}
...
...
@@ -158,8 +158,8 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr)
/* Free the owner ID only if it is valid */
if
(
acpi_gbl_owner_id_mask
&
(
1
<<
owner_id
))
{
acpi_gbl_owner_id_mask
^=
(
1
<<
owner_id
);
if
(
acpi_gbl_owner_id_mask
&
(
1
ULL
<<
owner_id
))
{
acpi_gbl_owner_id_mask
^=
(
1
ULL
<<
owner_id
);
}
(
void
)
acpi_ut_release_mutex
(
ACPI_MTX_CACHES
);
...
...
include/acpi/acglobal.h
View file @
3c058d8b
...
...
@@ -211,7 +211,7 @@ ACPI_EXTERN u32 acpi_gbl_original_mode;
ACPI_EXTERN
u32
acpi_gbl_rsdp_original_location
;
ACPI_EXTERN
u32
acpi_gbl_ns_lookup_count
;
ACPI_EXTERN
u32
acpi_gbl_ps_find_count
;
ACPI_EXTERN
u
32
acpi_gbl_owner_id_mask
;
ACPI_EXTERN
u
64
acpi_gbl_owner_id_mask
;
ACPI_EXTERN
u16
acpi_gbl_pm1_enable_register_save
;
ACPI_EXTERN
u16
acpi_gbl_global_lock_handle
;
ACPI_EXTERN
u8
acpi_gbl_debugger_configuration
;
...
...
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