Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376841
b: refs/heads/master
c: b60b61d
h: refs/heads/master
i:
  376839: df93a91
v: v3
  • Loading branch information
Nadav Haklai authored and Jason Cooper committed May 28, 2013
1 parent 1d7c02b commit d2aa7cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e89b4058096569c999fa599370162022a5a2b3d2
refs/heads/master: b60b61d41220c8d34e2c62a748bc78bc5d40585e
16 changes: 11 additions & 5 deletions trunk/arch/arm/mach-mvebu/coherency_ll.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,21 @@ ENTRY(ll_set_cpu_coherent)

/* Add CPU to SMP group - Atomic */
add r3, r0, #ARMADA_XP_CFB_CTL_REG_OFFSET
ldr r2, [r3]
1:
ldrex r2, [r3]
orr r2, r2, r1
str r2, [r3]
strex r0, r2, [r3]
cmp r0, #0
bne 1b

/* Enable coherency on CPU - Atomic */
add r3, r0, #ARMADA_XP_CFB_CFG_REG_OFFSET
ldr r2, [r3]
add r3, r3, #ARMADA_XP_CFB_CFG_REG_OFFSET
1:
ldrex r2, [r3]
orr r2, r2, r1
str r2, [r3]
strex r0, r2, [r3]
cmp r0, #0
bne 1b

dsb

Expand Down

0 comments on commit d2aa7cc

Please sign in to comment.