Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
9aaed2b4
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9aaed2b4
编写于
10月 14, 2006
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull trivial into test branch
上级
18d508bf
a790b323
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
11 deletion
+14
-11
drivers/acpi/motherboard.c
drivers/acpi/motherboard.c
+6
-0
drivers/acpi/pci_link.c
drivers/acpi/pci_link.c
+1
-1
drivers/acpi/power.c
drivers/acpi/power.c
+3
-6
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+1
-1
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+1
-1
drivers/acpi/tables/tbget.c
drivers/acpi/tables/tbget.c
+1
-1
drivers/acpi/tables/tbrsdt.c
drivers/acpi/tables/tbrsdt.c
+1
-1
未找到文件。
drivers/acpi/motherboard.c
浏览文件 @
9aaed2b4
...
...
@@ -48,6 +48,12 @@ ACPI_MODULE_NAME("acpi_motherboard")
* the io ports if they really know they can use it, while
* still preventing hotplug PCI devices from using it.
*/
/*
* When CONFIG_PNP is enabled, pnp/system.c binds to PNP0C01
* and PNP0C02, redundant with acpi_reserve_io_ranges().
* But acpi_reserve_io_ranges() is necessary for !CONFIG_PNP.
*/
static
acpi_status
acpi_reserve_io_ranges
(
struct
acpi_resource
*
res
,
void
*
data
)
{
struct
resource
*
requested_res
=
NULL
;
...
...
drivers/acpi/pci_link.c
浏览文件 @
9aaed2b4
...
...
@@ -307,7 +307,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
if
(
!
link
||
!
irq
)
return
-
EINVAL
;
resource
=
kmalloc
(
sizeof
(
*
resource
)
+
1
,
GFP_ATOMIC
);
resource
=
kmalloc
(
sizeof
(
*
resource
)
+
1
,
irqs_disabled
()
?
GFP_ATOMIC
:
GFP_KERNEL
);
if
(
!
resource
)
return
-
ENOMEM
;
...
...
drivers/acpi/power.c
浏览文件 @
9aaed2b4
...
...
@@ -216,10 +216,8 @@ static int acpi_power_off_device(acpi_handle handle)
{
int
result
=
0
;
acpi_status
status
=
AE_OK
;
struct
acpi_device
*
device
=
NULL
;
struct
acpi_power_resource
*
resource
=
NULL
;
result
=
acpi_power_get_context
(
handle
,
&
resource
);
if
(
result
)
return
result
;
...
...
@@ -230,13 +228,13 @@ static int acpi_power_off_device(acpi_handle handle)
if
(
resource
->
references
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Resource [%s] is still in use, dereferencing
\n
"
,
device
->
pnp
.
bus_id
));
resource
->
device
->
pnp
.
bus_id
));
return
0
;
}
if
(
resource
->
state
==
ACPI_POWER_RESOURCE_STATE_OFF
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Resource [%s] already off
\n
"
,
device
->
pnp
.
bus_id
));
resource
->
device
->
pnp
.
bus_id
));
return
0
;
}
...
...
@@ -251,8 +249,7 @@ static int acpi_power_off_device(acpi_handle handle)
return
-
ENOEXEC
;
/* Update the power resource's _device_ power state */
device
=
resource
->
device
;
device
->
power
.
state
=
ACPI_STATE_D3
;
resource
->
device
->
power
.
state
=
ACPI_STATE_D3
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Resource [%s] turned off
\n
"
,
resource
->
name
));
...
...
drivers/acpi/processor_core.c
浏览文件 @
9aaed2b4
...
...
@@ -519,7 +519,7 @@ static int acpi_processor_get_info(struct acpi_processor *pr)
static
void
*
processor_device_array
[
NR_CPUS
];
static
int
acpi_processor_start
(
struct
acpi_device
*
device
)
static
int
__cpuinit
acpi_processor_start
(
struct
acpi_device
*
device
)
{
int
result
=
0
;
acpi_status
status
=
AE_OK
;
...
...
drivers/acpi/processor_idle.c
浏览文件 @
9aaed2b4
...
...
@@ -1130,7 +1130,7 @@ static struct notifier_block acpi_processor_latency_notifier = {
.
notifier_call
=
acpi_processor_latency_notify
,
};
int
acpi_processor_power_init
(
struct
acpi_processor
*
pr
,
int
__cpuinit
acpi_processor_power_init
(
struct
acpi_processor
*
pr
,
struct
acpi_device
*
device
)
{
acpi_status
status
=
0
;
...
...
drivers/acpi/tables/tbget.c
浏览文件 @
9aaed2b4
...
...
@@ -324,7 +324,7 @@ acpi_tb_get_this_table(struct acpi_pointer *address,
if
(
header
->
length
<
sizeof
(
struct
acpi_table_header
))
{
ACPI_ERROR
((
AE_INFO
,
"Table length (%X) is smaller than minimum (%X)"
,
"Table length (%X) is smaller than minimum (%
z
X)"
,
header
->
length
,
sizeof
(
struct
acpi_table_header
)));
return_ACPI_STATUS
(
AE_INVALID_TABLE_LENGTH
);
...
...
drivers/acpi/tables/tbrsdt.c
浏览文件 @
9aaed2b4
...
...
@@ -187,7 +187,7 @@ acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr)
if
(
table_ptr
->
length
<
sizeof
(
struct
acpi_table_header
))
{
ACPI_ERROR
((
AE_INFO
,
"RSDT/XSDT length (%X) is smaller than minimum (%X)"
,
"RSDT/XSDT length (%X) is smaller than minimum (%
z
X)"
,
table_ptr
->
length
,
sizeof
(
struct
acpi_table_header
)));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录