Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f2c194a0
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看板
提交
f2c194a0
编写于
2月 27, 2010
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MIPS: GT641xx: Convert IRQ controller lock to raw spinlock.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
4a41abe5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
9 deletion
+9
-9
arch/mips/kernel/irq-gt641xx.c
arch/mips/kernel/irq-gt641xx.c
+9
-9
未找到文件。
arch/mips/kernel/irq-gt641xx.c
浏览文件 @
f2c194a0
...
...
@@ -27,18 +27,18 @@
#define GT641XX_IRQ_TO_BIT(irq) (1U << (irq - GT641XX_IRQ_BASE))
static
DEFINE_SPINLOCK
(
gt641xx_irq_lock
);
static
DEFINE_
RAW_
SPINLOCK
(
gt641xx_irq_lock
);
static
void
ack_gt641xx_irq
(
unsigned
int
irq
)
{
unsigned
long
flags
;
u32
cause
;
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
cause
=
GT_READ
(
GT_INTRCAUSE_OFS
);
cause
&=
~
GT641XX_IRQ_TO_BIT
(
irq
);
GT_WRITE
(
GT_INTRCAUSE_OFS
,
cause
);
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
}
static
void
mask_gt641xx_irq
(
unsigned
int
irq
)
...
...
@@ -46,11 +46,11 @@ static void mask_gt641xx_irq(unsigned int irq)
unsigned
long
flags
;
u32
mask
;
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
mask
=
GT_READ
(
GT_INTRMASK_OFS
);
mask
&=
~
GT641XX_IRQ_TO_BIT
(
irq
);
GT_WRITE
(
GT_INTRMASK_OFS
,
mask
);
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
}
static
void
mask_ack_gt641xx_irq
(
unsigned
int
irq
)
...
...
@@ -58,7 +58,7 @@ static void mask_ack_gt641xx_irq(unsigned int irq)
unsigned
long
flags
;
u32
cause
,
mask
;
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
mask
=
GT_READ
(
GT_INTRMASK_OFS
);
mask
&=
~
GT641XX_IRQ_TO_BIT
(
irq
);
GT_WRITE
(
GT_INTRMASK_OFS
,
mask
);
...
...
@@ -66,7 +66,7 @@ static void mask_ack_gt641xx_irq(unsigned int irq)
cause
=
GT_READ
(
GT_INTRCAUSE_OFS
);
cause
&=
~
GT641XX_IRQ_TO_BIT
(
irq
);
GT_WRITE
(
GT_INTRCAUSE_OFS
,
cause
);
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
}
static
void
unmask_gt641xx_irq
(
unsigned
int
irq
)
...
...
@@ -74,11 +74,11 @@ static void unmask_gt641xx_irq(unsigned int irq)
unsigned
long
flags
;
u32
mask
;
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
gt641xx_irq_lock
,
flags
);
mask
=
GT_READ
(
GT_INTRMASK_OFS
);
mask
|=
GT641XX_IRQ_TO_BIT
(
irq
);
GT_WRITE
(
GT_INTRMASK_OFS
,
mask
);
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
gt641xx_irq_lock
,
flags
);
}
static
struct
irq_chip
gt641xx_irq_chip
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录