Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
3c009442
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
3c009442
编写于
6月 16, 2006
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MIPS] IP27: Fix collision with hardcoded interrupt number.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
0307e8d0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
60 addition
and
3 deletion
+60
-3
arch/mips/sgi-ip27/ip27-irq.c
arch/mips/sgi-ip27/ip27-irq.c
+1
-1
arch/mips/sgi-ip27/ip27-timer.c
arch/mips/sgi-ip27/ip27-timer.c
+59
-2
未找到文件。
arch/mips/sgi-ip27/ip27-irq.c
浏览文件 @
3c009442
...
...
@@ -360,7 +360,7 @@ static struct hw_interrupt_type bridge_irq_type = {
static
unsigned
long
irq_map
[
NR_IRQS
/
BITS_PER_LONG
];
static
int
allocate_irqno
(
void
)
int
allocate_irqno
(
void
)
{
int
irq
;
...
...
arch/mips/sgi-ip27/ip27-timer.c
浏览文件 @
3c009442
...
...
@@ -89,11 +89,13 @@ static int set_rtc_mmss(unsigned long nowtime)
}
#endif
static
unsigned
int
rt_timer_irq
;
void
ip27_rt_timer_interrupt
(
struct
pt_regs
*
regs
)
{
int
cpu
=
smp_processor_id
();
int
cpuA
=
cputoslice
(
cpu
)
==
0
;
int
irq
=
9
;
/* XXX Assign number */
unsigned
int
irq
=
rt_timer_irq
;
irq_enter
();
write_seqlock
(
&
xtime_lock
);
...
...
@@ -179,13 +181,68 @@ static __init unsigned long get_m48t35_time(void)
return
mktime
(
year
,
month
,
date
,
hour
,
min
,
sec
);
}
static
void
startup_rt_irq
(
unsigned
int
irq
)
{
}
static
void
shutdown_rt_irq
(
unsigned
int
irq
)
{
}
static
void
enable_rt_irq
(
unsigned
int
irq
)
{
}
static
void
disable_rt_irq
(
unsigned
int
irq
)
{
}
static
void
mask_and_ack_rt
(
unsigned
int
irq
)
{
}
static
void
end_rt_irq
(
unsigned
int
irq
)
{
}
static
struct
hw_interrupt_type
rt_irq_type
=
{
.
typename
=
"SN HUB RT timer"
,
.
startup
=
startup_rt_irq
,
.
shutdown
=
shutdown_rt_irq
,
.
enable
=
enable_rt_irq
,
.
disable
=
disable_rt_irq
,
.
ack
=
mask_and_ack_rt
,
.
end
=
end_rt_irq
,
};
static
struct
irqaction
rt_irqaction
=
{
.
handler
=
ip27_rt_timer_interrupt
,
.
flags
=
SA_INTERRUPT
,
.
mask
=
CPU_MASK_NONE
,
.
name
=
"timer"
};
extern
int
allocate_irqno
(
void
);
static
void
ip27_timer_setup
(
struct
irqaction
*
irq
)
{
int
irqno
=
allocate_irqno
();
if
(
irqno
<
0
)
panic
(
"Can't allocate interrupt number for timer interrupt"
);
irq_desc
[
irqno
].
status
=
IRQ_DISABLED
;
irq_desc
[
irqno
].
action
=
NULL
;
irq_desc
[
irqno
].
depth
=
1
;
irq_desc
[
irqno
].
handler
=
&
rt_irq_type
;
/* over-write the handler, we use our own way */
irq
->
handler
=
no_action
;
/* setup irqaction */
// setup_irq(IP27_TIMER_IRQ, irq); /* XXX Can't do this yet. */
irq_desc
[
irqno
].
status
|=
IRQ_PER_CPU
;
rt_timer_irq
=
irqno
;
}
void
__init
ip27_time_init
(
void
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录