Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f67ffa95
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看板
提交
f67ffa95
编写于
1月 06, 2013
作者:
R
Rafael J. Wysocki
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'pm-sleep'
* pm-sleep: PM: Move disabling/enabling runtime PM to late suspend/early resume
上级
868b0935
9f6d8f6a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
9 deletion
+9
-9
Documentation/power/runtime_pm.txt
Documentation/power/runtime_pm.txt
+5
-4
drivers/base/power/main.c
drivers/base/power/main.c
+4
-5
未找到文件。
Documentation/power/runtime_pm.txt
浏览文件 @
f67ffa95
...
...
@@ -642,12 +642,13 @@ out the following operations:
* During system suspend it calls pm_runtime_get_noresume() and
pm_runtime_barrier() for every device right before executing the
subsystem-level .suspend() callback for it. In addition to that it calls
pm_runtime_disable() for every device right after executing th
e
subsystem-level .suspend
() callback for it.
__pm_runtime_disable() with 'false' as the second argument for every devic
e
right before executing the subsystem-level .suspend_late
() callback for it.
* During system resume it calls pm_runtime_enable() and pm_runtime_put_sync()
for every device right before and right after executing the subsystem-level
.resume() callback for it, respectively.
for every device right after executing the subsystem-level .resume_early()
callback and right after executing the subsystem-level .resume() callback
for it, respectively.
7. Generic subsystem callbacks
...
...
drivers/base/power/main.c
浏览文件 @
f67ffa95
...
...
@@ -513,6 +513,8 @@ static int device_resume_early(struct device *dev, pm_message_t state)
Out:
TRACE_RESUME
(
error
);
pm_runtime_enable
(
dev
);
return
error
;
}
...
...
@@ -589,8 +591,6 @@ static int device_resume(struct device *dev, pm_message_t state, bool async)
if
(
!
dev
->
power
.
is_suspended
)
goto
Unlock
;
pm_runtime_enable
(
dev
);
if
(
dev
->
pm_domain
)
{
info
=
"power domain "
;
callback
=
pm_op
(
&
dev
->
pm_domain
->
ops
,
state
);
...
...
@@ -930,6 +930,8 @@ static int device_suspend_late(struct device *dev, pm_message_t state)
pm_callback_t
callback
=
NULL
;
char
*
info
=
NULL
;
__pm_runtime_disable
(
dev
,
false
);
if
(
dev
->
power
.
syscore
)
return
0
;
...
...
@@ -1133,11 +1135,8 @@ static int __device_suspend(struct device *dev, pm_message_t state, bool async)
Complete:
complete_all
(
&
dev
->
power
.
completion
);
if
(
error
)
async_error
=
error
;
else
if
(
dev
->
power
.
is_suspended
)
__pm_runtime_disable
(
dev
,
false
);
return
error
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录