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
f4ec9516
Commit
f4ec9516
authored
Aug 13, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use HMT hints in cpu_relax
parent
b77e5d86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/asm-ppc64/processor.h
include/asm-ppc64/processor.h
+1
-1
include/asm-ppc64/spinlock.h
include/asm-ppc64/spinlock.h
+1
-1
No files found.
include/asm-ppc64/processor.h
View file @
f4ec9516
...
...
@@ -708,7 +708,7 @@ static inline unsigned int __pack_fe01(unsigned int fpmode)
return
((
fpmode
<<
10
)
&
MSR_FE0
)
|
((
fpmode
<<
8
)
&
MSR_FE1
);
}
#define cpu_relax()
barrier(
)
#define cpu_relax()
do { HMT_low(); HMT_medium(); barrier(); } while (0
)
/*
* Prefetch macros.
...
...
include/asm-ppc64/spinlock.h
View file @
f4ec9516
...
...
@@ -210,7 +210,7 @@ static __inline__ int is_write_locked(rwlock_t *rw)
}
#define spin_lock_init(x) do { *(x) = SPIN_LOCK_UNLOCKED; } while(0)
#define spin_unlock_wait(x) do {
barrier
(); } while(spin_is_locked(x))
#define spin_unlock_wait(x) do {
cpu_relax
(); } while(spin_is_locked(x))
#define rwlock_init(x) do { *(x) = 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