Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
902b236c
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
902b236c
编写于
17年前
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull bugzilla-7887 into release branch
上级
08e4a10e
aafbcd16
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
12 deletion
+27
-12
drivers/acpi/bus.c
drivers/acpi/bus.c
+8
-5
drivers/acpi/hardware/hwsleep.c
drivers/acpi/hardware/hwsleep.c
+8
-5
drivers/acpi/sleep/main.c
drivers/acpi/sleep/main.c
+1
-2
include/acpi/acpi_drivers.h
include/acpi/acpi_drivers.h
+10
-0
未找到文件。
drivers/acpi/bus.c
浏览文件 @
902b236c
...
...
@@ -147,7 +147,7 @@ int acpi_bus_get_power(acpi_handle handle, int *state)
*
state
=
ACPI_STATE_D0
;
}
else
{
/*
* Get the device's power state either directly (via _PSC) or
* Get the device's power state either directly (via _PSC) or
* indirectly (via power resources).
*/
if
(
device
->
power
.
flags
.
explicit_get
)
{
...
...
@@ -461,7 +461,7 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
"Received BUS CHECK notification for device [%s]
\n
"
,
device
->
pnp
.
bus_id
));
result
=
acpi_bus_check_scope
(
device
);
/*
/*
* TBD: We'll need to outsource certain events to non-ACPI
* drivers via the device manager (device.c).
*/
...
...
@@ -472,7 +472,7 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
"Received DEVICE CHECK notification for device [%s]
\n
"
,
device
->
pnp
.
bus_id
));
result
=
acpi_bus_check_device
(
device
,
NULL
);
/*
/*
* TBD: We'll need to outsource certain events to non-ACPI
* drivers via the device manager (device.c).
*/
...
...
@@ -542,7 +542,7 @@ static int __init acpi_bus_init_irq(void)
char
*
message
=
NULL
;
/*
/*
* Let the system know what interrupt model we are using by
* evaluating the \_PIC object, if exists.
*/
...
...
@@ -683,7 +683,7 @@ static int __init acpi_bus_init(void)
* the EC device is found in the namespace (i.e. before acpi_initialize_objects()
* is called).
*
* This is accomplished by looking for the ECDT table, and getting
* This is accomplished by looking for the ECDT table, and getting
* the EC parameters out of that.
*/
status
=
acpi_ec_ecdt_probe
();
...
...
@@ -698,6 +698,9 @@ static int __init acpi_bus_init(void)
printk
(
KERN_INFO
PREFIX
"Interpreter enabled
\n
"
);
/* Initialize sleep structures */
acpi_sleep_init
();
/*
* Get the system interrupt model and evaluate \_PIC.
*/
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/hardware/hwsleep.c
浏览文件 @
902b236c
...
...
@@ -235,6 +235,14 @@ acpi_status acpi_enter_sleep_state_prep(u8 sleep_state)
"While executing method _SST"
));
}
/*
* 1) Disable/Clear all GPEs
*/
status
=
acpi_hw_disable_all_gpes
();
if
(
ACPI_FAILURE
(
status
))
{
return_ACPI_STATUS
(
status
);
}
return_ACPI_STATUS
(
AE_OK
);
}
...
...
@@ -290,13 +298,8 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state)
}
/*
* 1) Disable/Clear all GPEs
* 2) Enable all wakeup GPEs
*/
status
=
acpi_hw_disable_all_gpes
();
if
(
ACPI_FAILURE
(
status
))
{
return_ACPI_STATUS
(
status
);
}
acpi_gbl_system_awake_and_running
=
FALSE
;
status
=
acpi_hw_enable_all_wakeup_gpes
();
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/sleep/main.c
浏览文件 @
902b236c
...
...
@@ -200,7 +200,7 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = {
{},
};
static
int
__init
acpi_sleep_init
(
void
)
int
__init
acpi_sleep_init
(
void
)
{
int
i
=
0
;
...
...
@@ -229,4 +229,3 @@ static int __init acpi_sleep_init(void)
return
0
;
}
late_initcall
(
acpi_sleep_init
);
This diff is collapsed.
Click to expand it.
include/acpi/acpi_drivers.h
浏览文件 @
902b236c
...
...
@@ -136,4 +136,14 @@ static inline void unregister_hotplug_dock_device(acpi_handle handle)
{
}
#endif
/*--------------------------------------------------------------------------
Suspend/Resume
-------------------------------------------------------------------------- */
#ifdef CONFIG_ACPI_SLEEP
extern
int
acpi_sleep_init
(
void
);
#else
#define acpi_sleep_init() do {} while (0)
#endif
#endif
/*__ACPI_DRIVERS_H__*/
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录