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
nexedi
linux
Commits
32baba2f
Commit
32baba2f
authored
Feb 27, 2010
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: DEC: Convert KN01 lock to raw spinlock.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
d8d607d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
arch/mips/dec/kn01-berr.c
arch/mips/dec/kn01-berr.c
+5
-5
No files found.
arch/mips/dec/kn01-berr.c
View file @
32baba2f
...
...
@@ -46,7 +46,7 @@
* There is no default value -- it has to be initialized.
*/
u16
cached_kn01_csr
;
static
DEFINE_SPINLOCK
(
kn01_lock
);
static
DEFINE_
RAW_
SPINLOCK
(
kn01_lock
);
static
inline
void
dec_kn01_be_ack
(
void
)
...
...
@@ -54,12 +54,12 @@ static inline void dec_kn01_be_ack(void)
volatile
u16
*
csr
=
(
void
*
)
CKSEG1ADDR
(
KN01_SLOT_BASE
+
KN01_CSR
);
unsigned
long
flags
;
spin_lock_irqsave
(
&
kn01_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
kn01_lock
,
flags
);
*
csr
=
cached_kn01_csr
|
KN01_CSR_MEMERR
;
/* Clear bus IRQ. */
iob
();
spin_unlock_irqrestore
(
&
kn01_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
kn01_lock
,
flags
);
}
static
int
dec_kn01_be_backend
(
struct
pt_regs
*
regs
,
int
is_fixup
,
int
invoker
)
...
...
@@ -182,7 +182,7 @@ void __init dec_kn01_be_init(void)
volatile
u16
*
csr
=
(
void
*
)
CKSEG1ADDR
(
KN01_SLOT_BASE
+
KN01_CSR
);
unsigned
long
flags
;
spin_lock_irqsave
(
&
kn01_lock
,
flags
);
raw_
spin_lock_irqsave
(
&
kn01_lock
,
flags
);
/* Preset write-only bits of the Control Register cache. */
cached_kn01_csr
=
*
csr
;
...
...
@@ -194,7 +194,7 @@ void __init dec_kn01_be_init(void)
*
csr
=
cached_kn01_csr
;
iob
();
spin_unlock_irqrestore
(
&
kn01_lock
,
flags
);
raw_
spin_unlock_irqrestore
(
&
kn01_lock
,
flags
);
/* Clear any leftover errors from the firmware. */
dec_kn01_be_ack
();
...
...
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