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
4a41abe5
Commit
4a41abe5
authored
Feb 27, 2010
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Jazz: Convert irq controller lock to raw spinlock.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
4a8a738d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
arch/mips/jazz/irq.c
arch/mips/jazz/irq.c
+5
-5
No files found.
arch/mips/jazz/irq.c
View file @
4a41abe5
...
@@ -20,17 +20,17 @@
...
@@ -20,17 +20,17 @@
#include <asm/jazz.h>
#include <asm/jazz.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
static
DEFINE_SPINLOCK
(
r4030_lock
);
static
DEFINE_
RAW_
SPINLOCK
(
r4030_lock
);
static
void
enable_r4030_irq
(
unsigned
int
irq
)
static
void
enable_r4030_irq
(
unsigned
int
irq
)
{
{
unsigned
int
mask
=
1
<<
(
irq
-
JAZZ_IRQ_START
);
unsigned
int
mask
=
1
<<
(
irq
-
JAZZ_IRQ_START
);
unsigned
long
flags
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
r4030_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
r4030_lock
,
flags
);
mask
|=
r4030_read_reg16
(
JAZZ_IO_IRQ_ENABLE
);
mask
|=
r4030_read_reg16
(
JAZZ_IO_IRQ_ENABLE
);
r4030_write_reg16
(
JAZZ_IO_IRQ_ENABLE
,
mask
);
r4030_write_reg16
(
JAZZ_IO_IRQ_ENABLE
,
mask
);
spin_unlock_irqrestore
(
&
r4030_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
r4030_lock
,
flags
);
}
}
void
disable_r4030_irq
(
unsigned
int
irq
)
void
disable_r4030_irq
(
unsigned
int
irq
)
...
@@ -38,10 +38,10 @@ void disable_r4030_irq(unsigned int irq)
...
@@ -38,10 +38,10 @@ void disable_r4030_irq(unsigned int irq)
unsigned
int
mask
=
~
(
1
<<
(
irq
-
JAZZ_IRQ_START
));
unsigned
int
mask
=
~
(
1
<<
(
irq
-
JAZZ_IRQ_START
));
unsigned
long
flags
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
r4030_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
r4030_lock
,
flags
);
mask
&=
r4030_read_reg16
(
JAZZ_IO_IRQ_ENABLE
);
mask
&=
r4030_read_reg16
(
JAZZ_IO_IRQ_ENABLE
);
r4030_write_reg16
(
JAZZ_IO_IRQ_ENABLE
,
mask
);
r4030_write_reg16
(
JAZZ_IO_IRQ_ENABLE
,
mask
);
spin_unlock_irqrestore
(
&
r4030_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
r4030_lock
,
flags
);
}
}
static
struct
irq_chip
r4030_irq_type
=
{
static
struct
irq_chip
r4030_irq_type
=
{
...
...
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