Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
d0ab6714
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看板
提交
d0ab6714
编写于
12月 01, 2016
作者:
R
Rafael J. Wysocki
浏览文件
操作
浏览文件
下载
差异文件
Merge back earlier ACPICA material for v4.10.
上级
e2174b0c
69d4e425
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
36 addition
and
18 deletion
+36
-18
drivers/acpi/acpica/acglobal.h
drivers/acpi/acpica/acglobal.h
+1
-4
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/aclocal.h
+10
-9
drivers/acpi/acpica/tbxfload.c
drivers/acpi/acpica/tbxfload.c
+5
-1
include/acpi/acconfig.h
include/acpi/acconfig.h
+1
-1
include/acpi/acpixf.h
include/acpi/acpixf.h
+8
-1
tools/power/acpi/os_specific/service_layers/osunixxf.c
tools/power/acpi/os_specific/service_layers/osunixxf.c
+11
-2
未找到文件。
drivers/acpi/acpica/acglobal.h
浏览文件 @
d0ab6714
...
...
@@ -240,10 +240,6 @@ ACPI_INIT_GLOBAL(u32, acpi_gbl_nesting_level, 0);
ACPI_GLOBAL
(
struct
acpi_thread_state
*
,
acpi_gbl_current_walk_list
);
/* Maximum number of While() loop iterations before forced abort */
ACPI_GLOBAL
(
u16
,
acpi_gbl_max_loop_iterations
);
/* Control method single step flag */
ACPI_GLOBAL
(
u8
,
acpi_gbl_cm_single_step
);
...
...
@@ -318,6 +314,7 @@ ACPI_INIT_GLOBAL(u8, acpi_gbl_cstyle_disassembly, TRUE);
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_force_aml_disassembly
,
FALSE
);
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_dm_opt_verbose
,
TRUE
);
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_dm_emit_external_opcodes
,
FALSE
);
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_do_disassembler_optimizations
,
TRUE
);
ACPI_GLOBAL
(
u8
,
acpi_gbl_dm_opt_disasm
);
ACPI_GLOBAL
(
u8
,
acpi_gbl_dm_opt_listing
);
...
...
drivers/acpi/acpica/aclocal.h
浏览文件 @
d0ab6714
...
...
@@ -765,7 +765,7 @@ union acpi_parse_value {
union acpi_parse_value value;
/* Value or args associated with the opcode */
\
u8 arg_list_length;
/* Number of elements in the arg list */
\
ACPI_DISASM_ONLY_MEMBERS (\
u
8
disasm_flags;
/* Used during AML disassembly */
\
u
16
disasm_flags;
/* Used during AML disassembly */
\
u8 disasm_opcode;
/* Subtype used for disassembly */
\
char *operator_symbol;
/* Used for C-style operator name strings */
\
char aml_op_name[16])
/* Op name (debug only) */
...
...
@@ -868,14 +868,15 @@ struct acpi_parse_state {
/* Parse object disasm_flags */
#define ACPI_PARSEOP_IGNORE 0x01
#define ACPI_PARSEOP_PARAMETER_LIST 0x02
#define ACPI_PARSEOP_EMPTY_TERMLIST 0x04
#define ACPI_PARSEOP_PREDEFINED_CHECKED 0x08
#define ACPI_PARSEOP_CLOSING_PAREN 0x10
#define ACPI_PARSEOP_COMPOUND_ASSIGNMENT 0x20
#define ACPI_PARSEOP_ASSIGNMENT 0x40
#define ACPI_PARSEOP_ELSEIF 0x80
#define ACPI_PARSEOP_IGNORE 0x0001
#define ACPI_PARSEOP_PARAMETER_LIST 0x0002
#define ACPI_PARSEOP_EMPTY_TERMLIST 0x0004
#define ACPI_PARSEOP_PREDEFINED_CHECKED 0x0008
#define ACPI_PARSEOP_CLOSING_PAREN 0x0010
#define ACPI_PARSEOP_COMPOUND_ASSIGNMENT 0x0020
#define ACPI_PARSEOP_ASSIGNMENT 0x0040
#define ACPI_PARSEOP_ELSEIF 0x0080
#define ACPI_PARSEOP_LEGACY_ASL_ONLY 0x0100
/*****************************************************************************
*
...
...
drivers/acpi/acpica/tbxfload.c
浏览文件 @
d0ab6714
...
...
@@ -239,7 +239,7 @@ acpi_status acpi_tb_load_namespace(void)
}
if
(
!
tables_failed
)
{
ACPI_INFO
((
"%u ACPI AML tables successfully acquired and loaded
\n
"
,
tables_loaded
));
ACPI_INFO
((
"%u ACPI AML tables successfully acquired and loaded"
,
tables_loaded
));
}
else
{
ACPI_ERROR
((
AE_INFO
,
"%u table load failures, %u successful"
,
...
...
@@ -250,6 +250,10 @@ acpi_status acpi_tb_load_namespace(void)
status
=
AE_CTRL_TERMINATE
;
}
#ifdef ACPI_APPLICATION
ACPI_DEBUG_PRINT_RAW
((
ACPI_DB_INIT
,
"
\n
"
));
#endif
unlock_and_exit:
(
void
)
acpi_ut_release_mutex
(
ACPI_MTX_TABLES
);
return_ACPI_STATUS
(
status
);
...
...
include/acpi/acconfig.h
浏览文件 @
d0ab6714
...
...
@@ -146,7 +146,7 @@
/* Maximum number of While() loops before abort */
#define ACPI_MAX_LOOP_COUNT 0xFFFF
#define ACPI_MAX_LOOP_COUNT 0x
000F
FFFF
/******************************************************************************
*
...
...
include/acpi/acpixf.h
浏览文件 @
d0ab6714
...
...
@@ -46,7 +46,7 @@
/* Current ACPICA subsystem version in YYYYMMDD format */
#define ACPI_CA_VERSION 0x20160
831
#define ACPI_CA_VERSION 0x20160
930
#include <acpi/acconfig.h>
#include <acpi/actypes.h>
...
...
@@ -258,6 +258,13 @@ ACPI_INIT_GLOBAL(u8, acpi_gbl_osi_data, 0);
*/
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_reduced_hardware
,
FALSE
);
/*
* Maximum number of While() loop iterations before forced method abort.
* This mechanism is intended to prevent infinite loops during interpreter
* execution within a host kernel.
*/
ACPI_INIT_GLOBAL
(
u32
,
acpi_gbl_max_loop_iterations
,
ACPI_MAX_LOOP_COUNT
);
/*
* This mechanism is used to trace a specified AML method. The method is
* traced each time it is executed.
...
...
tools/power/acpi/os_specific/service_layers/osunixxf.c
浏览文件 @
d0ab6714
...
...
@@ -646,8 +646,12 @@ acpi_os_create_semaphore(u32 max_units,
}
#ifdef __APPLE__
{
char
*
semaphore_name
=
tmpnam
(
NULL
);
static
int
semaphore_count
=
0
;
char
semaphore_name
[
32
];
snprintf
(
semaphore_name
,
sizeof
(
semaphore_name
),
"acpi_sem_%d"
,
semaphore_count
++
);
printf
(
"%s
\n
"
,
semaphore_name
);
sem
=
sem_open
(
semaphore_name
,
O_EXCL
|
O_CREAT
,
0755
,
initial_units
);
...
...
@@ -692,10 +696,15 @@ acpi_status acpi_os_delete_semaphore(acpi_handle handle)
if
(
!
sem
)
{
return
(
AE_BAD_PARAMETER
);
}
#ifdef __APPLE__
if
(
sem_close
(
sem
)
==
-
1
)
{
return
(
AE_BAD_PARAMETER
);
}
#else
if
(
sem_destroy
(
sem
)
==
-
1
)
{
return
(
AE_BAD_PARAMETER
);
}
#endif
return
(
AE_OK
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录