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
d6c90be1
Commit
d6c90be1
authored
Feb 24, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPARC64: Use hard_smp_processor_id() for init_irqwork_curcpu()
parent
d548a928
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/irq.c
+3
-2
No files found.
arch/sparc64/kernel/irq.c
View file @
d6c90be1
...
...
@@ -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
"
...
...
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