Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3aae994f
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看板
提交
3aae994f
编写于
2月 04, 2011
作者:
T
Thomas Gleixner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
genirq: Consolidate IRQ_DISABLED
Handle IRQ_DISABLED consistent. Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
50f7c032
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
16 deletion
+14
-16
kernel/irq/chip.c
kernel/irq/chip.c
+10
-4
kernel/irq/manage.c
kernel/irq/manage.c
+3
-6
kernel/irq/resend.c
kernel/irq/resend.c
+0
-5
kernel/irq/spurious.c
kernel/irq/spurious.c
+1
-1
未找到文件。
kernel/irq/chip.c
浏览文件 @
3aae994f
...
...
@@ -194,11 +194,14 @@ EXPORT_SYMBOL_GPL(set_irq_nested_thread);
int
irq_startup
(
struct
irq_desc
*
desc
)
{
desc
->
status
&=
~
(
IRQ_MASKED
|
IRQ_DISABLED
)
;
desc
->
status
&=
~
IRQ_DISABLED
;
desc
->
depth
=
0
;
if
(
desc
->
irq_data
.
chip
->
irq_startup
)
return
desc
->
irq_data
.
chip
->
irq_startup
(
&
desc
->
irq_data
);
if
(
desc
->
irq_data
.
chip
->
irq_startup
)
{
int
ret
=
desc
->
irq_data
.
chip
->
irq_startup
(
&
desc
->
irq_data
);
desc
->
status
&=
~
IRQ_MASKED
;
return
ret
;
}
irq_enable
(
desc
);
return
0
;
...
...
@@ -206,7 +209,7 @@ int irq_startup(struct irq_desc *desc)
void
irq_shutdown
(
struct
irq_desc
*
desc
)
{
desc
->
status
|=
IRQ_
MASKED
|
IRQ_
DISABLED
;
desc
->
status
|=
IRQ_DISABLED
;
desc
->
depth
=
1
;
if
(
desc
->
irq_data
.
chip
->
irq_shutdown
)
desc
->
irq_data
.
chip
->
irq_shutdown
(
&
desc
->
irq_data
);
...
...
@@ -214,10 +217,12 @@ void irq_shutdown(struct irq_desc *desc)
desc
->
irq_data
.
chip
->
irq_disable
(
&
desc
->
irq_data
);
else
desc
->
irq_data
.
chip
->
irq_mask
(
&
desc
->
irq_data
);
desc
->
status
|=
IRQ_MASKED
;
}
void
irq_enable
(
struct
irq_desc
*
desc
)
{
desc
->
status
&=
~
IRQ_DISABLED
;
if
(
desc
->
irq_data
.
chip
->
irq_enable
)
desc
->
irq_data
.
chip
->
irq_enable
(
&
desc
->
irq_data
);
else
...
...
@@ -227,6 +232,7 @@ void irq_enable(struct irq_desc *desc)
void
irq_disable
(
struct
irq_desc
*
desc
)
{
desc
->
status
|=
IRQ_DISABLED
;
if
(
desc
->
irq_data
.
chip
->
irq_disable
)
{
desc
->
irq_data
.
chip
->
irq_disable
(
&
desc
->
irq_data
);
desc
->
status
|=
IRQ_MASKED
;
...
...
kernel/irq/manage.c
浏览文件 @
3aae994f
...
...
@@ -329,10 +329,8 @@ void __disable_irq(struct irq_desc *desc, unsigned int irq, bool suspend)
desc
->
status
|=
IRQ_SUSPENDED
;
}
if
(
!
desc
->
depth
++
)
{
desc
->
status
|=
IRQ_DISABLED
;
if
(
!
desc
->
depth
++
)
irq_disable
(
desc
);
}
}
/**
...
...
@@ -407,12 +405,11 @@ void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume)
WARN
(
1
,
KERN_WARNING
"Unbalanced enable for IRQ %d
\n
"
,
irq
);
break
;
case
1
:
{
unsigned
int
status
=
desc
->
status
&
~
IRQ_DISABLED
;
if
(
desc
->
status
&
IRQ_SUSPENDED
)
goto
err_out
;
/* Prevent probing on this irq: */
desc
->
status
=
status
|
IRQ_NOPROBE
;
desc
->
status
|=
IRQ_NOPROBE
;
irq_enable
(
desc
);
check_irq_resend
(
desc
,
irq
);
/* fall-through */
}
...
...
kernel/irq/resend.c
浏览文件 @
3aae994f
...
...
@@ -55,11 +55,6 @@ static DECLARE_TASKLET(resend_tasklet, resend_irqs, 0);
*/
void
check_irq_resend
(
struct
irq_desc
*
desc
,
unsigned
int
irq
)
{
/*
* Make sure the interrupt is enabled, before resending it:
*/
irq_enable
(
desc
);
/*
* We do not resend level type interrupts. Level type
* interrupts are resent by hardware when they are still
...
...
kernel/irq/spurious.c
浏览文件 @
3aae994f
...
...
@@ -301,7 +301,7 @@ void note_interrupt(unsigned int irq, struct irq_desc *desc,
* Now kill the IRQ
*/
printk
(
KERN_EMERG
"Disabling IRQ #%d
\n
"
,
irq
);
desc
->
status
|=
IRQ_
DISABLED
|
IRQ_
SPURIOUS_DISABLED
;
desc
->
status
|=
IRQ_SPURIOUS_DISABLED
;
desc
->
depth
++
;
irq_disable
(
desc
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录