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
949bf166
Commit
949bf166
authored
Oct 27, 2010
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: imask IRQs irq_data conversion.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
d6138832
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
arch/sh/kernel/cpu/irq/imask.c
arch/sh/kernel/cpu/irq/imask.c
+9
-5
No files found.
arch/sh/kernel/cpu/irq/imask.c
View file @
949bf166
...
@@ -51,16 +51,20 @@ static inline void set_interrupt_registers(int ip)
...
@@ -51,16 +51,20 @@ static inline void set_interrupt_registers(int ip)
:
"t"
);
:
"t"
);
}
}
static
void
mask_imask_irq
(
unsigned
int
irq
)
static
void
mask_imask_irq
(
struct
irq_data
*
data
)
{
{
unsigned
int
irq
=
data
->
irq
;
clear_bit
(
irq
,
imask_mask
);
clear_bit
(
irq
,
imask_mask
);
if
(
interrupt_priority
<
IMASK_PRIORITY
-
irq
)
if
(
interrupt_priority
<
IMASK_PRIORITY
-
irq
)
interrupt_priority
=
IMASK_PRIORITY
-
irq
;
interrupt_priority
=
IMASK_PRIORITY
-
irq
;
set_interrupt_registers
(
interrupt_priority
);
set_interrupt_registers
(
interrupt_priority
);
}
}
static
void
unmask_imask_irq
(
unsigned
int
irq
)
static
void
unmask_imask_irq
(
struct
irq_data
*
data
)
{
{
unsigned
int
irq
=
data
->
irq
;
set_bit
(
irq
,
imask_mask
);
set_bit
(
irq
,
imask_mask
);
interrupt_priority
=
IMASK_PRIORITY
-
interrupt_priority
=
IMASK_PRIORITY
-
find_first_zero_bit
(
imask_mask
,
IMASK_PRIORITY
);
find_first_zero_bit
(
imask_mask
,
IMASK_PRIORITY
);
...
@@ -69,9 +73,9 @@ static void unmask_imask_irq(unsigned int irq)
...
@@ -69,9 +73,9 @@ static void unmask_imask_irq(unsigned int irq)
static
struct
irq_chip
imask_irq_chip
=
{
static
struct
irq_chip
imask_irq_chip
=
{
.
name
=
"SR.IMASK"
,
.
name
=
"SR.IMASK"
,
.
mask
=
mask_imask_irq
,
.
irq_mask
=
mask_imask_irq
,
.
unmask
=
unmask_imask_irq
,
.
irq_unmask
=
unmask_imask_irq
,
.
mask_ack
=
mask_imask_irq
,
.
irq_
mask_ack
=
mask_imask_irq
,
};
};
void
make_imask_irq
(
unsigned
int
irq
)
void
make_imask_irq
(
unsigned
int
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