Skip to content

Commit

Permalink
ppc: lwsync is the right thing for WB-memory.
Browse files Browse the repository at this point in the history
We will expose a flag to enable isync.
  • Loading branch information
Samy Al Bahra committed Jun 28, 2015
1 parent 360bee1 commit 3971541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/gcc/ppc/ck_pr.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CK_PR_FENCE(load_store, "lwsync")
CK_PR_FENCE(memory, "sync")
CK_PR_FENCE(acquire, "lwsync")
CK_PR_FENCE(release, "lwsync")
CK_PR_FENCE(lock, "isync")
CK_PR_FENCE(lock, "lwsync")
CK_PR_FENCE(unlock, "lwsync")

#undef CK_PR_FENCE
Expand Down
2 changes: 1 addition & 1 deletion include/gcc/ppc64/ck_pr.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ CK_PR_FENCE(load_store, "lwsync")
CK_PR_FENCE(memory, "sync")
CK_PR_FENCE(acquire, "lwsync")
CK_PR_FENCE(release, "lwsync")
CK_PR_FENCE(lock, "isync")
CK_PR_FENCE(lock, "lwsync")
CK_PR_FENCE(unlock, "lwsync")

#undef CK_PR_FENCE
Expand Down

0 comments on commit 3971541

Please sign in to comment.