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
0207ef8a
Commit
0207ef8a
authored
May 30, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Based on patch by Rohit Seth: Use "hint @pause" in more places.
parent
b594f96f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
include/asm-ia64/processor.h
include/asm-ia64/processor.h
+6
-1
include/asm-ia64/spinlock.h
include/asm-ia64/spinlock.h
+1
-2
No files found.
include/asm-ia64/processor.h
View file @
0207ef8a
...
...
@@ -624,8 +624,13 @@ ia64_set_lrr0 (unsigned long val)
asm
volatile
(
"mov cr.lrr0=%0;; srlz.d"
::
"r"
(
val
)
:
"memory"
);
}
#define cpu_relax() barrier()
static
inline
void
ia64_hint_pause
(
void
)
{
asm
volatile
(
"hint @pause"
:::
"memory"
);
}
#define cpu_relax() ia64_hint_pause()
static
inline
void
ia64_set_lrr1
(
unsigned
long
val
)
...
...
include/asm-ia64/spinlock.h
View file @
0207ef8a
...
...
@@ -133,8 +133,7 @@ do { \
while (unlikely(ia64_fetchadd(1, (int *) __read_lock_ptr, "acq") < 0)) { \
ia64_fetchadd(-1, (int *) __read_lock_ptr, "rel"); \
while (*(volatile int *)__read_lock_ptr < 0) \
barrier(); \
\
cpu_relax(); \
} \
} 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