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
Kirill Smelkov
linux
Commits
42c9a74d
Commit
42c9a74d
authored
Feb 04, 2011
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Convert msi_sn to new irq_chip functions
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
4a983ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
arch/ia64/sn/kernel/msi_sn.c
arch/ia64/sn/kernel/msi_sn.c
+14
-14
No files found.
arch/ia64/sn/kernel/msi_sn.c
View file @
42c9a74d
...
@@ -152,8 +152,8 @@ int sn_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *entry)
...
@@ -152,8 +152,8 @@ int sn_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *entry)
}
}
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
static
int
sn_set_msi_irq_affinity
(
unsigned
int
irq
,
static
int
sn_set_msi_irq_affinity
(
struct
irq_data
*
data
,
const
struct
cpumask
*
cpu_mask
)
const
struct
cpumask
*
cpu_mask
,
bool
force
)
{
{
struct
msi_msg
msg
;
struct
msi_msg
msg
;
int
slice
;
int
slice
;
...
@@ -164,7 +164,7 @@ static int sn_set_msi_irq_affinity(unsigned int irq,
...
@@ -164,7 +164,7 @@ static int sn_set_msi_irq_affinity(unsigned int irq,
struct
sn_irq_info
*
sn_irq_info
;
struct
sn_irq_info
*
sn_irq_info
;
struct
sn_irq_info
*
new_irq_info
;
struct
sn_irq_info
*
new_irq_info
;
struct
sn_pcibus_provider
*
provider
;
struct
sn_pcibus_provider
*
provider
;
unsigned
int
cpu
;
unsigned
int
cpu
,
irq
=
data
->
irq
;
cpu
=
cpumask_first
(
cpu_mask
);
cpu
=
cpumask_first
(
cpu_mask
);
sn_irq_info
=
sn_msi_info
[
irq
].
sn_irq_info
;
sn_irq_info
=
sn_msi_info
[
irq
].
sn_irq_info
;
...
@@ -206,33 +206,33 @@ static int sn_set_msi_irq_affinity(unsigned int irq,
...
@@ -206,33 +206,33 @@ static int sn_set_msi_irq_affinity(unsigned int irq,
msg
.
address_lo
=
(
u32
)(
bus_addr
&
0x00000000ffffffff
);
msg
.
address_lo
=
(
u32
)(
bus_addr
&
0x00000000ffffffff
);
write_msi_msg
(
irq
,
&
msg
);
write_msi_msg
(
irq
,
&
msg
);
cpumask_copy
(
irq_desc
[
irq
].
affinity
,
cpu_mask
);
cpumask_copy
(
data
->
affinity
,
cpu_mask
);
return
0
;
return
0
;
}
}
#endif
/* CONFIG_SMP */
#endif
/* CONFIG_SMP */
static
void
sn_ack_msi_irq
(
unsigned
int
irq
)
static
void
sn_ack_msi_irq
(
struct
irq_data
*
data
)
{
{
move_native_irq
(
irq
);
move_native_irq
(
data
->
irq
);
ia64_eoi
();
ia64_eoi
();
}
}
static
int
sn_msi_retrigger_irq
(
unsigned
int
irq
)
static
int
sn_msi_retrigger_irq
(
struct
irq_data
*
data
)
{
{
unsigned
int
vector
=
irq
;
unsigned
int
vector
=
data
->
irq
;
ia64_resend_irq
(
vector
);
ia64_resend_irq
(
vector
);
return
1
;
return
1
;
}
}
static
struct
irq_chip
sn_msi_chip
=
{
static
struct
irq_chip
sn_msi_chip
=
{
.
name
=
"PCI-MSI"
,
.
name
=
"PCI-MSI"
,
.
irq_mask
=
mask_msi_irq
,
.
irq_mask
=
mask_msi_irq
,
.
irq_unmask
=
unmask_msi_irq
,
.
irq_unmask
=
unmask_msi_irq
,
.
ack
=
sn_ack_msi_irq
,
.
irq_
ack
=
sn_ack_msi_irq
,
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
.
set_affinity
=
sn_set_msi_irq_affinity
,
.
irq_
set_affinity
=
sn_set_msi_irq_affinity
,
#endif
#endif
.
retrigger
=
sn_msi_retrigger_irq
,
.
irq_retrigger
=
sn_msi_retrigger_irq
,
};
};
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