Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b31c78e2
Commit
b31c78e2
authored
Dec 22, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge
parents
fbbde0c3
8b1af56b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
arch/powerpc/platforms/pseries/xics.c
arch/powerpc/platforms/pseries/xics.c
+3
-18
No files found.
arch/powerpc/platforms/pseries/xics.c
View file @
b31c78e2
...
...
@@ -48,11 +48,6 @@ static struct hw_interrupt_type xics_pic = {
.
set_affinity
=
xics_set_affinity
};
static
struct
hw_interrupt_type
xics_8259_pic
=
{
.
typename
=
" XICS/8259"
,
.
ack
=
xics_mask_and_ack_irq
,
};
/* This is used to map real irq numbers to virtual */
static
struct
radix_tree_root
irq_map
=
RADIX_TREE_INIT
(
GFP_ATOMIC
);
...
...
@@ -367,12 +362,7 @@ int xics_get_irq(struct pt_regs *regs)
/* for sanity, this had better be < NR_IRQS - 16 */
if
(
vec
==
xics_irq_8259_cascade_real
)
{
irq
=
i8259_irq
(
regs
);
if
(
irq
==
-
1
)
{
/* Spurious cascaded interrupt. Still must ack xics */
xics_end_irq
(
irq_offset_up
(
xics_irq_8259_cascade
));
irq
=
-
1
;
}
xics_end_irq
(
irq_offset_up
(
xics_irq_8259_cascade
));
}
else
if
(
vec
==
XICS_IRQ_SPURIOUS
)
{
irq
=
-
1
;
}
else
{
...
...
@@ -542,6 +532,7 @@ void xics_init_IRQ(void)
xics_irq_8259_cascade_real
=
*
ireg
;
xics_irq_8259_cascade
=
virt_irq_create_mapping
(
xics_irq_8259_cascade_real
);
i8259_init
(
0
,
0
);
of_node_put
(
np
);
}
...
...
@@ -565,12 +556,7 @@ void xics_init_IRQ(void)
#endif
/* CONFIG_SMP */
}
xics_8259_pic
.
enable
=
i8259_pic
.
enable
;
xics_8259_pic
.
disable
=
i8259_pic
.
disable
;
xics_8259_pic
.
end
=
i8259_pic
.
end
;
for
(
i
=
0
;
i
<
16
;
++
i
)
get_irq_desc
(
i
)
->
handler
=
&
xics_8259_pic
;
for
(;
i
<
NR_IRQS
;
++
i
)
for
(
i
=
irq_offset_value
();
i
<
NR_IRQS
;
++
i
)
get_irq_desc
(
i
)
->
handler
=
&
xics_pic
;
xics_setup_cpu
();
...
...
@@ -590,7 +576,6 @@ static int __init xics_setup_i8259(void)
no_action
,
0
,
"8259 cascade"
,
NULL
))
printk
(
KERN_ERR
"xics_setup_i8259: couldn't get 8259 "
"cascade
\n
"
);
i8259_init
(
0
,
0
);
}
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment