Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
545c8d8d
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
545c8d8d
编写于
2月 04, 2011
作者:
T
Thomas Gleixner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ia64: Convert sn to new irq_chip functions
Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
42c9a74d
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
23 addition
and
21 deletion
+23
-21
arch/ia64/sn/kernel/irq.c
arch/ia64/sn/kernel/irq.c
+23
-21
未找到文件。
arch/ia64/sn/kernel/irq.c
浏览文件 @
545c8d8d
...
...
@@ -78,34 +78,34 @@ u64 sn_intr_redirect(nasid_t local_nasid, int local_widget,
return
ret_stuff
.
status
;
}
static
unsigned
int
sn_startup_irq
(
unsigned
int
irq
)
static
unsigned
int
sn_startup_irq
(
struct
irq_data
*
data
)
{
return
0
;
}
static
void
sn_shutdown_irq
(
unsigned
int
irq
)
static
void
sn_shutdown_irq
(
struct
irq_data
*
data
)
{
}
extern
void
ia64_mca_register_cpev
(
int
);
static
void
sn_disable_irq
(
unsigned
int
irq
)
static
void
sn_disable_irq
(
struct
irq_data
*
data
)
{
if
(
irq
==
local_vector_to_irq
(
IA64_CPE_VECTOR
))
if
(
data
->
irq
==
local_vector_to_irq
(
IA64_CPE_VECTOR
))
ia64_mca_register_cpev
(
0
);
}
static
void
sn_enable_irq
(
unsigned
int
irq
)
static
void
sn_enable_irq
(
struct
irq_data
*
data
)
{
if
(
irq
==
local_vector_to_irq
(
IA64_CPE_VECTOR
))
ia64_mca_register_cpev
(
irq
);
if
(
data
->
irq
==
local_vector_to_irq
(
IA64_CPE_VECTOR
))
ia64_mca_register_cpev
(
data
->
irq
);
}
static
void
sn_ack_irq
(
unsigned
int
irq
)
static
void
sn_ack_irq
(
struct
irq_data
*
data
)
{
u64
event_occurred
,
mask
;
unsigned
int
irq
=
data
->
irq
&
0xff
;
irq
=
irq
&
0xff
;
event_occurred
=
HUB_L
((
u64
*
)
LOCAL_MMR_ADDR
(
SH_EVENT_OCCURRED
));
mask
=
event_occurred
&
SH_ALL_INT_MASK
;
HUB_S
((
u64
*
)
LOCAL_MMR_ADDR
(
SH_EVENT_OCCURRED_ALIAS
),
mask
);
...
...
@@ -206,9 +206,11 @@ struct sn_irq_info *sn_retarget_vector(struct sn_irq_info *sn_irq_info,
return
new_irq_info
;
}
static
int
sn_set_affinity_irq
(
unsigned
int
irq
,
const
struct
cpumask
*
mask
)
static
int
sn_set_affinity_irq
(
struct
irq_data
*
data
,
const
struct
cpumask
*
mask
,
bool
force
)
{
struct
sn_irq_info
*
sn_irq_info
,
*
sn_irq_info_safe
;
unsigned
int
irq
=
data
->
irq
;
nasid_t
nasid
;
int
slice
;
...
...
@@ -237,25 +239,25 @@ void sn_set_err_irq_affinity(unsigned int irq) { }
#endif
static
void
sn_mask_irq
(
unsigned
int
irq
)
sn_mask_irq
(
struct
irq_data
*
data
)
{
}
static
void
sn_unmask_irq
(
unsigned
int
irq
)
sn_unmask_irq
(
struct
irq_data
*
data
)
{
}
struct
irq_chip
irq_type_sn
=
{
.
name
=
"SN hub"
,
.
startup
=
sn_startup_irq
,
.
shutdown
=
sn_shutdown_irq
,
.
enable
=
sn_enable_irq
,
.
disable
=
sn_disable_irq
,
.
ack
=
sn_ack_irq
,
.
mask
=
sn_mask_irq
,
.
unmask
=
sn_unmask_irq
,
.
set_affinity
=
sn_set_affinity_irq
.
irq_startup
=
sn_startup_irq
,
.
irq_shutdown
=
sn_shutdown_irq
,
.
irq_
enable
=
sn_enable_irq
,
.
irq_disable
=
sn_disable_irq
,
.
irq_
ack
=
sn_ack_irq
,
.
irq_
mask
=
sn_mask_irq
,
.
irq_
unmask
=
sn_unmask_irq
,
.
irq_
set_affinity
=
sn_set_affinity_irq
};
ia64_vector
sn_irq_to_vector
(
int
irq
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录