Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
6e6c348f
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看板
提交
6e6c348f
编写于
4月 24, 2009
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'irq' into release
上级
7f3745ad
88bea188
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
5 deletion
+19
-5
Documentation/ABI/testing/sysfs-firmware-acpi
Documentation/ABI/testing/sysfs-firmware-acpi
+6
-2
drivers/acpi/osl.c
drivers/acpi/osl.c
+3
-1
drivers/acpi/system.c
drivers/acpi/system.c
+9
-2
include/linux/acpi.h
include/linux/acpi.h
+1
-0
未找到文件。
Documentation/ABI/testing/sysfs-firmware-acpi
浏览文件 @
6e6c348f
...
@@ -69,9 +69,13 @@ Description:
...
@@ -69,9 +69,13 @@ Description:
gpe1F: 0 invalid
gpe1F: 0 invalid
gpe_all: 1192
gpe_all: 1192
sci: 1194
sci: 1194
sci_not: 0
sci - The total number of times the ACPI SCI
sci - The number of times the ACPI SCI
has claimed an interrupt.
has been called and claimed an interrupt.
sci_not - The number of times the ACPI SCI
has been called and NOT claimed an interrupt.
gpe_all - count of SCI caused by GPEs.
gpe_all - count of SCI caused by GPEs.
...
...
drivers/acpi/osl.c
浏览文件 @
6e6c348f
...
@@ -353,8 +353,10 @@ static irqreturn_t acpi_irq(int irq, void *dev_id)
...
@@ -353,8 +353,10 @@ static irqreturn_t acpi_irq(int irq, void *dev_id)
if
(
handled
)
{
if
(
handled
)
{
acpi_irq_handled
++
;
acpi_irq_handled
++
;
return
IRQ_HANDLED
;
return
IRQ_HANDLED
;
}
else
}
else
{
acpi_irq_not_handled
++
;
return
IRQ_NONE
;
return
IRQ_NONE
;
}
}
}
acpi_status
acpi_status
...
...
drivers/acpi/system.c
浏览文件 @
6e6c348f
...
@@ -38,6 +38,7 @@ ACPI_MODULE_NAME("system");
...
@@ -38,6 +38,7 @@ ACPI_MODULE_NAME("system");
#define ACPI_SYSTEM_DEVICE_NAME "System"
#define ACPI_SYSTEM_DEVICE_NAME "System"
u32
acpi_irq_handled
;
u32
acpi_irq_handled
;
u32
acpi_irq_not_handled
;
/*
/*
* Make ACPICA version work as module param
* Make ACPICA version work as module param
...
@@ -214,8 +215,9 @@ static int acpi_system_sysfs_init(void)
...
@@ -214,8 +215,9 @@ static int acpi_system_sysfs_init(void)
#define COUNT_GPE 0
#define COUNT_GPE 0
#define COUNT_SCI 1
/* acpi_irq_handled */
#define COUNT_SCI 1
/* acpi_irq_handled */
#define COUNT_ERROR 2
/* other */
#define COUNT_SCI_NOT 2
/* acpi_irq_not_handled */
#define NUM_COUNTERS_EXTRA 3
#define COUNT_ERROR 3
/* other */
#define NUM_COUNTERS_EXTRA 4
struct
event_counter
{
struct
event_counter
{
u32
count
;
u32
count
;
...
@@ -317,6 +319,8 @@ static ssize_t counter_show(struct kobject *kobj,
...
@@ -317,6 +319,8 @@ static ssize_t counter_show(struct kobject *kobj,
all_counters
[
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_SCI
].
count
=
all_counters
[
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_SCI
].
count
=
acpi_irq_handled
;
acpi_irq_handled
;
all_counters
[
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_SCI_NOT
].
count
=
acpi_irq_not_handled
;
all_counters
[
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_GPE
].
count
=
all_counters
[
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_GPE
].
count
=
acpi_gpe_count
;
acpi_gpe_count
;
...
@@ -363,6 +367,7 @@ static ssize_t counter_set(struct kobject *kobj,
...
@@ -363,6 +367,7 @@ static ssize_t counter_set(struct kobject *kobj,
all_counters
[
i
].
count
=
0
;
all_counters
[
i
].
count
=
0
;
acpi_gpe_count
=
0
;
acpi_gpe_count
=
0
;
acpi_irq_handled
=
0
;
acpi_irq_handled
=
0
;
acpi_irq_not_handled
=
0
;
goto
end
;
goto
end
;
}
}
...
@@ -456,6 +461,8 @@ void acpi_irq_stats_init(void)
...
@@ -456,6 +461,8 @@ void acpi_irq_stats_init(void)
sprintf
(
buffer
,
"gpe_all"
);
sprintf
(
buffer
,
"gpe_all"
);
else
if
(
i
==
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_SCI
)
else
if
(
i
==
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_SCI
)
sprintf
(
buffer
,
"sci"
);
sprintf
(
buffer
,
"sci"
);
else
if
(
i
==
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_SCI_NOT
)
sprintf
(
buffer
,
"sci_not"
);
else
if
(
i
==
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_ERROR
)
else
if
(
i
==
num_gpes
+
ACPI_NUM_FIXED_EVENTS
+
COUNT_ERROR
)
sprintf
(
buffer
,
"error"
);
sprintf
(
buffer
,
"error"
);
else
else
...
...
include/linux/acpi.h
浏览文件 @
6e6c348f
...
@@ -111,6 +111,7 @@ int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base);
...
@@ -111,6 +111,7 @@ int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base);
int
acpi_unregister_ioapic
(
acpi_handle
handle
,
u32
gsi_base
);
int
acpi_unregister_ioapic
(
acpi_handle
handle
,
u32
gsi_base
);
void
acpi_irq_stats_init
(
void
);
void
acpi_irq_stats_init
(
void
);
extern
u32
acpi_irq_handled
;
extern
u32
acpi_irq_handled
;
extern
u32
acpi_irq_not_handled
;
extern
struct
acpi_mcfg_allocation
*
pci_mmcfg_config
;
extern
struct
acpi_mcfg_allocation
*
pci_mmcfg_config
;
extern
int
pci_mmcfg_config_num
;
extern
int
pci_mmcfg_config_num
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录