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
dc9e5689
Commit
dc9e5689
authored
Jul 23, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: fix test_bit and remove workaround in cpu_relax
parent
dd951843
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
include/asm-ppc64/bitops.h
include/asm-ppc64/bitops.h
+1
-1
include/asm-ppc64/processor.h
include/asm-ppc64/processor.h
+0
-5
No files found.
include/asm-ppc64/bitops.h
View file @
dc9e5689
...
...
@@ -43,7 +43,7 @@
static
__inline__
int
test_bit
(
unsigned
long
nr
,
__const__
volatile
unsigned
long
*
addr
)
{
return
(
1UL
&
(
((
__const__
long
*
)
addr
)
[
nr
>>
6
]
>>
(
nr
&
63
)));
return
(
1UL
&
(
addr
[
nr
>>
6
]
>>
(
nr
&
63
)));
}
static
__inline__
void
set_bit
(
unsigned
long
nr
,
volatile
unsigned
long
*
addr
)
...
...
include/asm-ppc64/processor.h
View file @
dc9e5689
...
...
@@ -692,12 +692,7 @@ unsigned long get_wchan(struct task_struct *p);
#define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
#define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0)
/* XXX Temporary work around for a gcc 3.1 bug - Anton */
#if 0
#define cpu_relax() do { } while (0)
#else
#define cpu_relax() barrier()
#endif
/*
* Prefetch macros.
...
...
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