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
4861cee9
Commit
4861cee9
authored
Sep 25, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: sn_ML_intr.c is a freakin mess
fed through Lindent and dead codepathes eliminated.
parent
e4af63aa
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
155 additions
and
283 deletions
+155
-283
arch/ia64/sn/io/machvec/pci_bus_cvlink.c
arch/ia64/sn/io/machvec/pci_bus_cvlink.c
+6
-2
arch/ia64/sn/io/sn2/ml_SN_intr.c
arch/ia64/sn/io/sn2/ml_SN_intr.c
+140
-264
arch/ia64/sn/io/sn2/shub_intr.c
arch/ia64/sn/io/sn2/shub_intr.c
+4
-7
arch/ia64/sn/io/sn2/shuberror.c
arch/ia64/sn/io/sn2/shuberror.c
+3
-4
include/asm-ia64/sn/sn2/sn_private.h
include/asm-ia64/sn/sn2/sn_private.h
+2
-6
No files found.
arch/ia64/sn/io/machvec/pci_bus_cvlink.c
View file @
4861cee9
...
...
@@ -438,14 +438,18 @@ sn_pci_fixup(int arg)
extern
void
register_sn_procfs
(
void
);
#endif
extern
void
irix_io_init
(
void
);
extern
void
sn_init_cpei_timer
(
void
);
init_hcl
();
irix_io_init
();
for
(
cnode
=
0
;
cnode
<
numnodes
;
cnode
++
)
{
extern
void
intr_init_vecblk
(
nodepda_t
*
npda
,
cnodeid_t
,
in
t
);
intr_init_vecblk
(
NODEPDA
(
cnode
),
cnode
,
0
);
extern
void
intr_init_vecblk
(
cnodeid_
t
);
intr_init_vecblk
(
cnode
);
}
sn_init_cpei_timer
();
#ifdef CONFIG_PROC_FS
register_sn_procfs
();
#endif
...
...
arch/ia64/sn/io/sn2/ml_SN_intr.c
View file @
4861cee9
This diff is collapsed.
Click to expand it.
arch/ia64/sn/io/sn2/shub_intr.c
View file @
4861cee9
/* $Id: shub_intr.c,v 1.1 2002/02/28 17:31:25 marcelo Exp $
*
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
...
...
@@ -61,8 +60,7 @@ do_hub_intr_alloc(vertex_hdl_t dev,
xwidget_info_t
xwidget_info
;
ilvl_t
intr_swlevel
=
0
;
cpu
=
intr_heuristic
(
dev
,
dev_desc
,
-
1
,
0
,
owner_dev
,
NULL
,
&
vector
);
cpu
=
intr_heuristic
(
dev
,
-
1
,
&
vector
);
if
(
cpu
==
CPU_NONE
)
{
printk
(
"Unable to allocate interrupt for 0x%p
\n
"
,
(
void
*
)
owner_dev
);
return
(
0
);
...
...
@@ -150,10 +148,9 @@ hub_intr_connect(hub_intr_t intr_hdl,
ASSERT
(
intr_hdl
->
i_flags
&
HUB_INTR_IS_ALLOCED
);
rv
=
intr_connect_level
(
cpu
,
vector
,
intr_hdl
->
i_swlevel
,
NULL
);
if
(
rv
<
0
)
{
rv
=
intr_connect_level
(
cpu
,
vector
);
if
(
rv
<
0
)
return
rv
;
}
intr_hdl
->
i_xtalk_info
.
xi_setfunc
=
setfunc
;
intr_hdl
->
i_xtalk_info
.
xi_sfarg
=
setfunc_arg
;
...
...
arch/ia64/sn/io/sn2/shuberror.c
View file @
4861cee9
...
...
@@ -145,14 +145,13 @@ hubii_eint_init(cnodeid_t cnode)
/* Select a possible interrupt target where there is a free interrupt
* bit and also reserve the interrupt bit for this IO error interrupt
*/
intr_cpu
=
intr_heuristic
(
hub_v
,
0
,
SGI_II_ERROR
,
0
,
hub_v
,
"HUB IO error interrupt"
,
&
bit
);
intr_cpu
=
intr_heuristic
(
hub_v
,
SGI_II_ERROR
,
&
bit
);
if
(
intr_cpu
==
CPU_NONE
)
{
printk
(
"hubii_eint_init: intr_
reserve_level
failed, cnode %d"
,
cnode
);
printk
(
"hubii_eint_init: intr_
heuristic
failed, cnode %d"
,
cnode
);
return
;
}
rv
=
intr_connect_level
(
intr_cpu
,
SGI_II_ERROR
,
0
,
NULL
);
rv
=
intr_connect_level
(
intr_cpu
,
SGI_II_ERROR
);
request_irq
(
SGI_II_ERROR
,
hubii_eint_handler
,
SA_SHIRQ
,
"SN_hub_error"
,
(
void
*
)
hub_v
);
irq_descp
(
bit
)
->
status
|=
SN2_IRQ_PER_HUB
;
ASSERT_ALWAYS
(
rv
>=
0
);
...
...
include/asm-ia64/sn/sn2/sn_private.h
View file @
4861cee9
...
...
@@ -49,14 +49,10 @@ extern void get_dir_ent(paddr_t paddr, int *state,
#endif
/* intr.c */
extern
int
intr_reserve_level
(
cpuid_t
cpu
,
int
level
,
int
err
,
vertex_hdl_t
owner_dev
,
char
*
name
);
extern
void
intr_unreserve_level
(
cpuid_t
cpu
,
int
level
);
extern
int
intr_connect_level
(
cpuid_t
cpu
,
int
bit
,
ilvl_t
mask_no
,
intr_func_t
intr_prefunc
);
extern
int
intr_connect_level
(
cpuid_t
cpu
,
int
bit
);
extern
int
intr_disconnect_level
(
cpuid_t
cpu
,
int
bit
);
extern
cpuid_t
intr_heuristic
(
vertex_hdl_t
dev
,
device_desc_t
dev_desc
,
int
req_bit
,
int
intr_resflags
,
vertex_hdl_t
owner_dev
,
char
*
intr_name
,
int
*
resp_bit
);
extern
cpuid_t
intr_heuristic
(
vertex_hdl_t
dev
,
int
req_bit
,
int
*
resp_bit
);
extern
void
intr_block_bit
(
cpuid_t
cpu
,
int
bit
);
extern
void
intr_unblock_bit
(
cpuid_t
cpu
,
int
bit
);
extern
void
setrtvector
(
intr_func_t
);
...
...
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