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
18437347
Commit
18437347
authored
Jun 20, 2013
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: More code beautification with IS_ENABLED()
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
8235703e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
arch/arc/kernel/irq.c
arch/arc/kernel/irq.c
+3
-9
No files found.
arch/arc/kernel/irq.c
View file @
18437347
...
@@ -38,15 +38,9 @@ void __cpuinit arc_init_IRQ(void)
...
@@ -38,15 +38,9 @@ void __cpuinit arc_init_IRQ(void)
write_aux_reg
(
AUX_IENABLE
,
0
);
write_aux_reg
(
AUX_IENABLE
,
0
);
/* setup any high priority Interrupts (Level2 in ARCompact jargon) */
/* setup any high priority Interrupts (Level2 in ARCompact jargon) */
#ifdef CONFIG_ARC_IRQ3_LV2
level_mask
|=
IS_ENABLED
(
CONFIG_ARC_IRQ3_LV2
)
<<
3
;
level_mask
|=
(
1
<<
3
);
level_mask
|=
IS_ENABLED
(
CONFIG_ARC_IRQ5_LV2
)
<<
5
;
#endif
level_mask
|=
IS_ENABLED
(
CONFIG_ARC_IRQ6_LV2
)
<<
6
;
#ifdef CONFIG_ARC_IRQ5_LV2
level_mask
|=
(
1
<<
5
);
#endif
#ifdef CONFIG_ARC_IRQ6_LV2
level_mask
|=
(
1
<<
6
);
#endif
if
(
level_mask
)
{
if
(
level_mask
)
{
pr_info
(
"Level-2 interrupts bitset %x
\n
"
,
level_mask
);
pr_info
(
"Level-2 interrupts bitset %x
\n
"
,
level_mask
);
...
...
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