Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
fcb8918f
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看板
提交
fcb8918f
编写于
3月 24, 2011
作者:
T
Thomas Gleixner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Convert to new function names
Scripted with coccinelle. Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
a821b279
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
65 addition
and
65 deletion
+65
-65
arch/sh/boards/board-magicpanelr2.c
arch/sh/boards/board-magicpanelr2.c
+6
-6
arch/sh/boards/mach-cayman/irq.c
arch/sh/boards/mach-cayman/irq.c
+2
-2
arch/sh/boards/mach-dreamcast/irq.c
arch/sh/boards/mach-dreamcast/irq.c
+1
-2
arch/sh/boards/mach-ecovec24/setup.c
arch/sh/boards/mach-ecovec24/setup.c
+1
-1
arch/sh/boards/mach-microdev/irq.c
arch/sh/boards/mach-microdev/irq.c
+1
-1
arch/sh/boards/mach-se/7206/irq.c
arch/sh/boards/mach-se/7206/irq.c
+1
-1
arch/sh/boards/mach-se/7343/irq.c
arch/sh/boards/mach-se/7343/irq.c
+12
-11
arch/sh/boards/mach-se/7722/irq.c
arch/sh/boards/mach-se/7722/irq.c
+8
-7
arch/sh/boards/mach-se/7724/irq.c
arch/sh/boards/mach-se/7724/irq.c
+7
-8
arch/sh/boards/mach-x3proto/gpio.c
arch/sh/boards/mach-x3proto/gpio.c
+4
-4
arch/sh/cchips/hd6446x/hd64461.c
arch/sh/cchips/hd6446x/hd64461.c
+3
-3
arch/sh/kernel/cpu/irq/imask.c
arch/sh/kernel/cpu/irq/imask.c
+2
-2
arch/sh/kernel/cpu/irq/intc-sh5.c
arch/sh/kernel/cpu/irq/intc-sh5.c
+1
-1
arch/sh/kernel/cpu/irq/ipr.c
arch/sh/kernel/cpu/irq/ipr.c
+3
-3
drivers/sh/intc/core.c
drivers/sh/intc/core.c
+7
-7
drivers/sh/intc/virq.c
drivers/sh/intc/virq.c
+6
-6
未找到文件。
arch/sh/boards/board-magicpanelr2.c
浏览文件 @
fcb8918f
...
...
@@ -388,12 +388,12 @@ static void __init init_mpr2_IRQ(void)
{
plat_irq_setup_pins
(
IRQ_MODE_IRQ
);
/* install handlers for IRQ0-5 */
set_irq_type
(
32
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ0 CAN1 */
set_irq_type
(
33
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ1 CAN2 */
set_irq_type
(
34
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ2 CAN3 */
set_irq_type
(
35
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ3 SMSC9115 */
set_irq_type
(
36
,
IRQ_TYPE_EDGE_RISING
);
/* IRQ4 touchscreen */
set_irq_type
(
37
,
IRQ_TYPE_EDGE_FALLING
);
/* IRQ5 touchscreen */
irq_
set_irq_type
(
32
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ0 CAN1 */
irq_
set_irq_type
(
33
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ1 CAN2 */
irq_
set_irq_type
(
34
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ2 CAN3 */
irq_
set_irq_type
(
35
,
IRQ_TYPE_LEVEL_LOW
);
/* IRQ3 SMSC9115 */
irq_
set_irq_type
(
36
,
IRQ_TYPE_EDGE_RISING
);
/* IRQ4 touchscreen */
irq_
set_irq_type
(
37
,
IRQ_TYPE_EDGE_FALLING
);
/* IRQ5 touchscreen */
intc_set_priority
(
32
,
13
);
/* IRQ0 CAN1 */
intc_set_priority
(
33
,
13
);
/* IRQ0 CAN2 */
...
...
arch/sh/boards/mach-cayman/irq.c
浏览文件 @
fcb8918f
...
...
@@ -149,8 +149,8 @@ void init_cayman_irq(void)
}
for
(
i
=
0
;
i
<
NR_EXT_IRQS
;
i
++
)
{
set_irq_chip_and_handler
(
START_EXT_IRQS
+
i
,
&
cayman_irq_type
,
handle_level_irq
);
irq_set_chip_and_handler
(
START_EXT_IRQS
+
i
,
&
cayman_irq_type
,
handle_level_irq
);
}
/* Setup the SMSC interrupt */
...
...
arch/sh/boards/mach-dreamcast/irq.c
浏览文件 @
fcb8918f
...
...
@@ -161,7 +161,6 @@ void systemasic_irq_init(void)
return
;
}
set_irq_chip_and_handler
(
i
,
&
systemasic_int
,
handle_level_irq
);
irq_set_chip_and_handler
(
i
,
&
systemasic_int
,
handle_level_irq
);
}
}
arch/sh/boards/mach-ecovec24/setup.c
浏览文件 @
fcb8918f
...
...
@@ -1102,7 +1102,7 @@ static int __init arch_setup(void)
/* enable TouchScreen */
i2c_register_board_info
(
0
,
&
ts_i2c_clients
,
1
);
set_irq_type
(
IRQ0
,
IRQ_TYPE_LEVEL_LOW
);
irq_
set_irq_type
(
IRQ0
,
IRQ_TYPE_LEVEL_LOW
);
}
/* enable CEU0 */
...
...
arch/sh/boards/mach-microdev/irq.c
浏览文件 @
fcb8918f
...
...
@@ -117,7 +117,7 @@ static struct irq_chip microdev_irq_type = {
static
void
__init
make_microdev_irq
(
unsigned
int
irq
)
{
disable_irq_nosync
(
irq
);
set_irq
_chip_and_handler
(
irq
,
&
microdev_irq_type
,
handle_level_irq
);
irq_set
_chip_and_handler
(
irq
,
&
microdev_irq_type
,
handle_level_irq
);
disable_microdev_irq
(
irq_get_irq_data
(
irq
));
}
...
...
arch/sh/boards/mach-se/7206/irq.c
浏览文件 @
fcb8918f
...
...
@@ -125,7 +125,7 @@ static struct irq_chip se7206_irq_chip __read_mostly = {
static
void
make_se7206_irq
(
unsigned
int
irq
)
{
disable_irq_nosync
(
irq
);
set_irq
_chip_and_handler_name
(
irq
,
&
se7206_irq_chip
,
irq_set
_chip_and_handler_name
(
irq
,
&
se7206_irq_chip
,
handle_level_irq
,
"level"
);
disable_se7206_irq
(
irq_get_irq_data
(
irq
));
}
...
...
arch/sh/boards/mach-se/7343/irq.c
浏览文件 @
fcb8918f
...
...
@@ -67,19 +67,20 @@ void __init init_7343se_IRQ(void)
return
;
se7343_fpga_irq
[
i
]
=
irq
;
set_irq
_chip_and_handler_name
(
se7343_fpga_irq
[
i
],
irq_set
_chip_and_handler_name
(
se7343_fpga_irq
[
i
],
&
se7343_irq_chip
,
handle_level_irq
,
"level"
);
handle_level_irq
,
"level"
);
set_irq
_chip_data
(
se7343_fpga_irq
[
i
],
(
void
*
)
i
);
irq_set
_chip_data
(
se7343_fpga_irq
[
i
],
(
void
*
)
i
);
}
set_irq
_chained_handler
(
IRQ0_IRQ
,
se7343_irq_demux
);
set_irq_type
(
IRQ0_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
set_irq
_chained_handler
(
IRQ1_IRQ
,
se7343_irq_demux
);
set_irq_type
(
IRQ1_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
set_irq
_chained_handler
(
IRQ4_IRQ
,
se7343_irq_demux
);
set_irq_type
(
IRQ4_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
set_irq
_chained_handler
(
IRQ5_IRQ
,
se7343_irq_demux
);
set_irq_type
(
IRQ5_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ0_IRQ
,
se7343_irq_demux
);
irq_
set_irq_type
(
IRQ0_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ1_IRQ
,
se7343_irq_demux
);
irq_
set_irq_type
(
IRQ1_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ4_IRQ
,
se7343_irq_demux
);
irq_
set_irq_type
(
IRQ4_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ5_IRQ
,
se7343_irq_demux
);
irq_
set_irq_type
(
IRQ5_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
}
arch/sh/boards/mach-se/7722/irq.c
浏览文件 @
fcb8918f
...
...
@@ -67,16 +67,17 @@ void __init init_se7722_IRQ(void)
return
;
se7722_fpga_irq
[
i
]
=
irq
;
set_irq
_chip_and_handler_name
(
se7722_fpga_irq
[
i
],
irq_set
_chip_and_handler_name
(
se7722_fpga_irq
[
i
],
&
se7722_irq_chip
,
handle_level_irq
,
"level"
);
handle_level_irq
,
"level"
);
set_irq
_chip_data
(
se7722_fpga_irq
[
i
],
(
void
*
)
i
);
irq_set
_chip_data
(
se7722_fpga_irq
[
i
],
(
void
*
)
i
);
}
set_irq
_chained_handler
(
IRQ0_IRQ
,
se7722_irq_demux
);
set_irq_type
(
IRQ0_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ0_IRQ
,
se7722_irq_demux
);
irq_
set_irq_type
(
IRQ0_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
set_irq
_chained_handler
(
IRQ1_IRQ
,
se7722_irq_demux
);
set_irq_type
(
IRQ1_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ1_IRQ
,
se7722_irq_demux
);
irq_
set_irq_type
(
IRQ1_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
}
arch/sh/boards/mach-se/7724/irq.c
浏览文件 @
fcb8918f
...
...
@@ -140,17 +140,16 @@ void __init init_se7724_IRQ(void)
return
;
}
set_irq_chip_and_handler_name
(
irq
,
&
se7724_irq_chip
,
irq_set_chip_and_handler_name
(
irq
,
&
se7724_irq_chip
,
handle_level_irq
,
"level"
);
}
set_irq
_chained_handler
(
IRQ0_IRQ
,
se7724_irq_demux
);
set_irq_type
(
IRQ0_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ0_IRQ
,
se7724_irq_demux
);
irq_
set_irq_type
(
IRQ0_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
set_irq
_chained_handler
(
IRQ1_IRQ
,
se7724_irq_demux
);
set_irq_type
(
IRQ1_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ1_IRQ
,
se7724_irq_demux
);
irq_
set_irq_type
(
IRQ1_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
set_irq
_chained_handler
(
IRQ2_IRQ
,
se7724_irq_demux
);
set_irq_type
(
IRQ2_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
IRQ2_IRQ
,
se7724_irq_demux
);
irq_
set_irq_type
(
IRQ2_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
}
arch/sh/boards/mach-x3proto/gpio.c
浏览文件 @
fcb8918f
...
...
@@ -102,8 +102,8 @@ int __init x3proto_gpio_setup(void)
spin_lock_irqsave
(
&
x3proto_gpio_lock
,
flags
);
x3proto_gpio_irq_map
[
i
]
=
irq
;
set_irq
_chip_and_handler_name
(
irq
,
&
dummy_irq_chip
,
handle_simple_irq
,
"gpio"
);
irq_set
_chip_and_handler_name
(
irq
,
&
dummy_irq_chip
,
handle_simple_irq
,
"gpio"
);
spin_unlock_irqrestore
(
&
x3proto_gpio_lock
,
flags
);
}
...
...
@@ -113,8 +113,8 @@ int __init x3proto_gpio_setup(void)
x3proto_gpio_chip
.
base
+
x3proto_gpio_chip
.
ngpio
,
ilsel
);
set_irq
_chained_handler
(
ilsel
,
x3proto_gpio_irq_handler
);
set_irq_wake
(
ilsel
,
1
);
irq_set
_chained_handler
(
ilsel
,
x3proto_gpio_irq_handler
);
irq_
set_irq_wake
(
ilsel
,
1
);
return
0
;
...
...
arch/sh/cchips/hd6446x/hd64461.c
浏览文件 @
fcb8918f
...
...
@@ -107,12 +107,12 @@ int __init setup_hd64461(void)
return
-
EINVAL
;
}
set_irq
_chip_and_handler
(
i
,
&
hd64461_irq_chip
,
irq_set
_chip_and_handler
(
i
,
&
hd64461_irq_chip
,
handle_level_irq
);
}
set_irq
_chained_handler
(
CONFIG_HD64461_IRQ
,
hd64461_irq_demux
);
set_irq_type
(
CONFIG_HD64461_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
irq_set
_chained_handler
(
CONFIG_HD64461_IRQ
,
hd64461_irq_demux
);
irq_
set_irq_type
(
CONFIG_HD64461_IRQ
,
IRQ_TYPE_LEVEL_LOW
);
#ifdef CONFIG_HD64461_ENABLER
printk
(
KERN_INFO
"HD64461: enabling PCMCIA devices
\n
"
);
...
...
arch/sh/kernel/cpu/irq/imask.c
浏览文件 @
fcb8918f
...
...
@@ -80,6 +80,6 @@ static struct irq_chip imask_irq_chip = {
void
make_imask_irq
(
unsigned
int
irq
)
{
set_irq_chip_and_handler_name
(
irq
,
&
imask_irq_chip
,
handle_level_irq
,
"level"
);
irq_set_chip_and_handler_name
(
irq
,
&
imask_irq_chip
,
handle_level_irq
,
"level"
);
}
arch/sh/kernel/cpu/irq/intc-sh5.c
浏览文件 @
fcb8918f
...
...
@@ -135,7 +135,7 @@ void __init plat_irq_setup(void)
/* Set default: per-line enable/disable, priority driven ack/eoi */
for
(
i
=
0
;
i
<
NR_INTC_IRQS
;
i
++
)
set_irq
_chip_and_handler
(
i
,
&
intc_irq_type
,
handle_level_irq
);
irq_set
_chip_and_handler
(
i
,
&
intc_irq_type
,
handle_level_irq
);
/* Disable all interrupts and set all priorities to 0 to avoid trouble */
...
...
arch/sh/kernel/cpu/irq/ipr.c
浏览文件 @
fcb8918f
...
...
@@ -74,9 +74,9 @@ void register_ipr_controller(struct ipr_desc *desc)
}
disable_irq_nosync
(
p
->
irq
);
set_irq
_chip_and_handler_name
(
p
->
irq
,
&
desc
->
chip
,
handle_level_irq
,
"level"
);
set_irq
_chip_data
(
p
->
irq
,
p
);
irq_set
_chip_and_handler_name
(
p
->
irq
,
&
desc
->
chip
,
handle_level_irq
,
"level"
);
irq_set
_chip_data
(
p
->
irq
,
p
);
disable_ipr_irq
(
irq_get_irq_data
(
p
->
irq
));
}
}
...
...
drivers/sh/intc/core.c
浏览文件 @
fcb8918f
...
...
@@ -63,7 +63,7 @@ void intc_set_prio_level(unsigned int irq, unsigned int level)
static
void
intc_redirect_irq
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
{
generic_handle_irq
((
unsigned
int
)
get_irq
_data
(
irq
));
generic_handle_irq
((
unsigned
int
)
irq_get_handler
_data
(
irq
));
}
static
void
__init
intc_register_irq
(
struct
intc_desc
*
desc
,
...
...
@@ -116,9 +116,9 @@ static void __init intc_register_irq(struct intc_desc *desc,
irq_data
=
irq_get_irq_data
(
irq
);
disable_irq_nosync
(
irq
);
set_irq_chip_and_handler_name
(
irq
,
&
d
->
chip
,
handle_level_irq
,
"level"
);
set_irq
_chip_data
(
irq
,
(
void
*
)
data
[
primary
]);
irq_set_chip_and_handler_name
(
irq
,
&
d
->
chip
,
handle_level_irq
,
"level"
);
irq_set
_chip_data
(
irq
,
(
void
*
)
data
[
primary
]);
/*
* set priority level
...
...
@@ -340,9 +340,9 @@ int __init register_intc_controller(struct intc_desc *desc)
vect2
->
enum_id
=
0
;
/* redirect this interrupts to the first one */
set_irq
_chip
(
irq2
,
&
dummy_irq_chip
);
set_irq
_chained_handler
(
irq2
,
intc_redirect_irq
);
set_irq
_data
(
irq2
,
(
void
*
)
irq
);
irq_set
_chip
(
irq2
,
&
dummy_irq_chip
);
irq_set
_chained_handler
(
irq2
,
intc_redirect_irq
);
irq_set_handler
_data
(
irq2
,
(
void
*
)
irq
);
}
}
...
...
drivers/sh/intc/virq.c
浏览文件 @
fcb8918f
...
...
@@ -110,7 +110,7 @@ static void intc_virq_handler(unsigned int irq, struct irq_desc *desc)
{
struct
irq_data
*
data
=
irq_get_irq_data
(
irq
);
struct
irq_chip
*
chip
=
irq_data_get_irq_chip
(
data
);
struct
intc_virq_list
*
entry
,
*
vlist
=
irq_data_get_irq_data
(
data
);
struct
intc_virq_list
*
entry
,
*
vlist
=
irq_data_get_irq_
handler_
data
(
data
);
struct
intc_desc_int
*
d
=
get_intc_desc
(
irq
);
chip
->
irq_mask_ack
(
data
);
...
...
@@ -118,7 +118,7 @@ static void intc_virq_handler(unsigned int irq, struct irq_desc *desc)
for_each_virq
(
entry
,
vlist
)
{
unsigned
long
addr
,
handle
;
handle
=
(
unsigned
long
)
get_irq
_data
(
entry
->
irq
);
handle
=
(
unsigned
long
)
irq_get_handler
_data
(
entry
->
irq
);
addr
=
INTC_REG
(
d
,
_INTC_ADDR_E
(
handle
),
0
);
if
(
intc_reg_fns
[
_INTC_FN
(
handle
)](
addr
,
handle
,
0
))
...
...
@@ -229,13 +229,13 @@ static void __init intc_subgroup_map(struct intc_desc_int *d)
intc_irq_xlate_set
(
irq
,
entry
->
enum_id
,
d
);
set_irq_chip_and_handler_name
(
irq
,
get_irq
_chip
(
entry
->
pirq
),
irq_set_chip_and_handler_name
(
irq
,
irq_get
_chip
(
entry
->
pirq
),
handle_simple_irq
,
"virq"
);
set_irq_chip_data
(
irq
,
get_irq
_chip_data
(
entry
->
pirq
));
irq_set_chip_data
(
irq
,
irq_get
_chip_data
(
entry
->
pirq
));
set_irq
_data
(
irq
,
(
void
*
)
entry
->
handle
);
irq_set_handler
_data
(
irq
,
(
void
*
)
entry
->
handle
);
set_irq
_chained_handler
(
entry
->
pirq
,
intc_virq_handler
);
irq_set
_chained_handler
(
entry
->
pirq
,
intc_virq_handler
);
add_virq_to_pirq
(
entry
->
pirq
,
irq
);
radix_tree_tag_clear
(
&
d
->
tree
,
entry
->
enum_id
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录