Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
c7db7ba5
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c7db7ba5
编写于
10月 03, 2009
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'misc' into release
上级
39340925
50d716e4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
15 deletion
+10
-15
drivers/acpi/dock.c
drivers/acpi/dock.c
+8
-8
drivers/acpi/proc.c
drivers/acpi/proc.c
+2
-0
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+0
-7
未找到文件。
drivers/acpi/dock.c
浏览文件 @
c7db7ba5
...
...
@@ -67,7 +67,7 @@ struct dock_station {
struct
list_head
dependent_devices
;
struct
list_head
hotplug_devices
;
struct
list_head
sib
i
ling
;
struct
list_head
sibling
;
struct
platform_device
*
dock_device
;
};
static
LIST_HEAD
(
dock_stations
);
...
...
@@ -275,7 +275,7 @@ int is_dock_device(acpi_handle handle)
if
(
is_dock
(
handle
))
return
1
;
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sib
i
ling
)
{
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sibling
)
{
if
(
find_dock_dependent_device
(
dock_station
,
handle
))
return
1
;
}
...
...
@@ -619,7 +619,7 @@ register_hotplug_dock_device(acpi_handle handle, struct acpi_dock_ops *ops,
* make sure this handle is for a device dependent on the dock,
* this would include the dock station itself
*/
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sib
i
ling
)
{
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sibling
)
{
/*
* An ATA bay can be in a dock and itself can be ejected
* seperately, so there are two 'dock stations' which need the
...
...
@@ -651,7 +651,7 @@ void unregister_hotplug_dock_device(acpi_handle handle)
if
(
!
dock_station_count
)
return
;
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sib
i
ling
)
{
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sibling
)
{
dd
=
find_dock_dependent_device
(
dock_station
,
handle
);
if
(
dd
)
dock_del_hotplug_device
(
dock_station
,
dd
);
...
...
@@ -787,7 +787,7 @@ static int acpi_dock_notifier_call(struct notifier_block *this,
if
(
event
!=
ACPI_NOTIFY_BUS_CHECK
&&
event
!=
ACPI_NOTIFY_DEVICE_CHECK
&&
event
!=
ACPI_NOTIFY_EJECT_REQUEST
)
return
0
;
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sib
i
ling
)
{
list_for_each_entry
(
dock_station
,
&
dock_stations
,
sibling
)
{
if
(
dock_station
->
handle
==
handle
)
{
struct
dock_data
*
dock_data
;
...
...
@@ -958,7 +958,7 @@ static int dock_add(acpi_handle handle)
dock_station
->
last_dock_time
=
jiffies
-
HZ
;
INIT_LIST_HEAD
(
&
dock_station
->
dependent_devices
);
INIT_LIST_HEAD
(
&
dock_station
->
hotplug_devices
);
INIT_LIST_HEAD
(
&
dock_station
->
sib
i
ling
);
INIT_LIST_HEAD
(
&
dock_station
->
sibling
);
spin_lock_init
(
&
dock_station
->
dd_lock
);
mutex_init
(
&
dock_station
->
hp_lock
);
ATOMIC_INIT_NOTIFIER_HEAD
(
&
dock_notifier_list
);
...
...
@@ -1044,7 +1044,7 @@ static int dock_add(acpi_handle handle)
add_dock_dependent_device
(
dock_station
,
dd
);
dock_station_count
++
;
list_add
(
&
dock_station
->
sib
i
ling
,
&
dock_stations
);
list_add
(
&
dock_station
->
sibling
,
&
dock_stations
);
return
0
;
dock_add_err_unregister:
...
...
@@ -1149,7 +1149,7 @@ static void __exit dock_exit(void)
struct
dock_station
*
tmp
;
unregister_acpi_bus_notifier
(
&
dock_acpi_notifier
);
list_for_each_entry_safe
(
dock_station
,
tmp
,
&
dock_stations
,
sib
i
ling
)
list_for_each_entry_safe
(
dock_station
,
tmp
,
&
dock_stations
,
sibling
)
dock_remove
(
dock_station
);
}
...
...
drivers/acpi/proc.c
浏览文件 @
c7db7ba5
...
...
@@ -398,6 +398,8 @@ acpi_system_write_wakeup_device(struct file *file,
if
(
len
>
4
)
len
=
4
;
if
(
len
<
0
)
return
-
EFAULT
;
if
(
copy_from_user
(
strbuf
,
buffer
,
len
))
return
-
EFAULT
;
...
...
drivers/acpi/processor_core.c
浏览文件 @
c7db7ba5
...
...
@@ -863,13 +863,6 @@ static int acpi_processor_add(struct acpi_device *device)
goto
err_remove_sysfs
;
}
if
(
pr
->
flags
.
throttling
)
{
printk
(
KERN_INFO
PREFIX
"%s [%s] (supports"
,
acpi_device_name
(
device
),
acpi_device_bid
(
device
));
printk
(
" %d throttling states"
,
pr
->
throttling
.
state_count
);
printk
(
")
\n
"
);
}
return
0
;
err_remove_sysfs:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录