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
590892de
Commit
590892de
authored
Jun 25, 2014
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: [intc] mask/unmask can be hidden again
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
25c7c11f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
24 deletions
+14
-24
arch/arc/include/asm/irqflags.h
arch/arc/include/asm/irqflags.h
+0
-18
arch/arc/kernel/irq.c
arch/arc/kernel/irq.c
+14
-6
No files found.
arch/arc/include/asm/irqflags.h
View file @
590892de
...
...
@@ -131,24 +131,6 @@ static inline int arch_irqs_disabled(void)
return
arch_irqs_disabled_flags
(
arch_local_save_flags
());
}
static
inline
void
arch_mask_irq
(
unsigned
int
irq
)
{
unsigned
int
ienb
;
ienb
=
read_aux_reg
(
AUX_IENABLE
);
ienb
&=
~
(
1
<<
irq
);
write_aux_reg
(
AUX_IENABLE
,
ienb
);
}
static
inline
void
arch_unmask_irq
(
unsigned
int
irq
)
{
unsigned
int
ienb
;
ienb
=
read_aux_reg
(
AUX_IENABLE
);
ienb
|=
(
1
<<
irq
);
write_aux_reg
(
AUX_IENABLE
,
ienb
);
}
#else
#ifdef CONFIG_TRACE_IRQFLAGS
...
...
arch/arc/kernel/irq.c
View file @
590892de
...
...
@@ -55,20 +55,28 @@ void arc_init_IRQ(void)
* below, per IRQ.
*/
static
void
arc_
mask_irq
(
struct
irq_data
*
data
)
static
void
arc_
irq_mask
(
struct
irq_data
*
data
)
{
arch_mask_irq
(
data
->
irq
);
unsigned
int
ienb
;
ienb
=
read_aux_reg
(
AUX_IENABLE
);
ienb
&=
~
(
1
<<
data
->
irq
);
write_aux_reg
(
AUX_IENABLE
,
ienb
);
}
static
void
arc_
unmask_irq
(
struct
irq_data
*
data
)
static
void
arc_
irq_unmask
(
struct
irq_data
*
data
)
{
arch_unmask_irq
(
data
->
irq
);
unsigned
int
ienb
;
ienb
=
read_aux_reg
(
AUX_IENABLE
);
ienb
|=
(
1
<<
data
->
irq
);
write_aux_reg
(
AUX_IENABLE
,
ienb
);
}
static
struct
irq_chip
onchip_intc
=
{
.
name
=
"ARC In-core Intc"
,
.
irq_mask
=
arc_
mask_irq
,
.
irq_unmask
=
arc_
unmask_irq
,
.
irq_mask
=
arc_
irq_mask
,
.
irq_unmask
=
arc_
irq_unmask
,
};
static
int
arc_intc_domain_map
(
struct
irq_domain
*
d
,
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