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
b63ea712
Commit
b63ea712
authored
Aug 06, 2013
by
Chris Metcalf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tile: fix comment bug in sys_cmpxchg description
Signed-off-by:
Chris Metcalf
<
cmetcalf@tilera.com
>
parent
77f8c740
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
arch/tile/kernel/intvec_32.S
arch/tile/kernel/intvec_32.S
+1
-1
No files found.
arch/tile/kernel/intvec_32.S
View file @
b63ea712
...
@@ -1609,7 +1609,7 @@ ENTRY(sys_cmpxchg)
...
@@ -1609,7 +1609,7 @@ ENTRY(sys_cmpxchg)
*
Because
of
C
pointer
arithmetic
,
we
want
to
compute
this
:
*
Because
of
C
pointer
arithmetic
,
we
want
to
compute
this
:
*
*
*
((
char
*)
atomic_locks
+
*
((
char
*)
atomic_locks
+
*
(((
r0
>>
3
)
&
(
1
<<
(
ATOMIC_HASH_SIZE
-
1
)
))
<<
2
))
*
(((
r0
>>
3
)
&
(
(
1
<<
ATOMIC_HASH_SHIFT
)
-
1
))
<<
2
))
*
*
*
Instead
of
two
shifts
we
just
">> 1"
,
and
use
'mm'
*
Instead
of
two
shifts
we
just
">> 1"
,
and
use
'mm'
*
to
ignore
the
low
and
high
bits
we
don
't want.
*
to
ignore
the
low
and
high
bits
we
don
't want.
...
...
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