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
9b91e15b
Commit
9b91e15b
authored
Feb 24, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.phunnypharm.org/sparc-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6
parents
61e7d4eb
d6c90be1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/irq.c
+3
-2
arch/sparc64/lib/debuglocks.c
arch/sparc64/lib/debuglocks.c
+6
-3
include/asm-sparc64/spinlock.h
include/asm-sparc64/spinlock.h
+2
-1
No files found.
arch/sparc64/kernel/irq.c
View file @
9b91e15b
...
...
@@ -1104,8 +1104,9 @@ void init_irqwork_curcpu(void)
{
register
struct
irq_work_struct
*
workp
asm
(
"o2"
);
unsigned
long
tmp
;
int
cpu
=
hard_smp_processor_id
();
memset
(
__irq_work
+
smp_processor_id
()
,
0
,
sizeof
(
*
workp
));
memset
(
__irq_work
+
cpu
,
0
,
sizeof
(
*
workp
));
/* Make sure we are called with PSTATE_IE disabled. */
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
...
...
@@ -1120,7 +1121,7 @@ void init_irqwork_curcpu(void)
}
/* Set interrupt globals. */
workp
=
&
__irq_work
[
smp_processor_id
()
];
workp
=
&
__irq_work
[
cpu
];
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
"wrpr %0, %1, %%pstate
\n\t
"
...
...
arch/sparc64/lib/debuglocks.c
View file @
9b91e15b
...
...
@@ -35,14 +35,17 @@ static inline void show_read (char *str, rwlock_t *lock, unsigned long caller)
static
inline
void
show_write
(
char
*
str
,
rwlock_t
*
lock
,
unsigned
long
caller
)
{
int
cpu
=
smp_processor_id
();
int
i
;
printk
(
"%s(%p) CPU#%d stuck at %08x
\n
"
,
str
,
lock
,
cpu
,
(
unsigned
int
)
caller
);
printk
(
"Writer: PC(%08x):CPU(%x)
\n
"
,
lock
->
writer_pc
,
lock
->
writer_cpu
);
printk
(
"Readers: 0[%08x] 1[%08x] 2[%08x] 4[%08x]
\n
"
,
lock
->
reader_pc
[
0
],
lock
->
reader_pc
[
1
],
lock
->
reader_pc
[
2
],
lock
->
reader_pc
[
3
]);
printk
(
"Readers:"
);
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
)
if
(
lock
->
reader_pc
[
i
])
printk
(
" %d[%08x]"
,
i
,
lock
->
reader_pc
[
i
]);
printk
(
"
\n
"
);
}
#undef INIT_STUCK
...
...
include/asm-sparc64/spinlock.h
View file @
9b91e15b
...
...
@@ -7,6 +7,7 @@
#define __SPARC64_SPINLOCK_H
#include <linux/config.h>
#include <linux/threads.h>
/* For NR_CPUS */
#ifndef __ASSEMBLY__
...
...
@@ -131,7 +132,7 @@ extern int __write_trylock(rwlock_t *);
typedef
struct
{
unsigned
long
lock
;
unsigned
int
writer_pc
,
writer_cpu
;
unsigned
int
reader_pc
[
4
];
unsigned
int
reader_pc
[
NR_CPUS
];
}
rwlock_t
;
#define RW_LOCK_UNLOCKED (rwlock_t) { 0, 0, 0xff, { 0, 0, 0, 0 } }
#define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0)
...
...
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