Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3c058d8b
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3c058d8b
编写于
12月 22, 2005
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull owner_id into release branch
上级
db9ace70
9d6be4be
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
10 deletion
+10
-10
drivers/acpi/utilities/utmisc.c
drivers/acpi/utilities/utmisc.c
+9
-9
include/acpi/acglobal.h
include/acpi/acglobal.h
+1
-1
未找到文件。
drivers/acpi/utilities/utmisc.c
浏览文件 @
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
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录