Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339548
b: refs/heads/master
c: f600b9f
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon committed Nov 15, 2012
1 parent 5e63b51 commit baa53b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 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: f435ab79928e4d54082e2838c4562a165e37999c
refs/heads/master: f600b9fcd2bcb8ee0adb235f54ccdd93c729c442
20 changes: 2 additions & 18 deletions trunk/arch/arm/include/asm/cti.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,7 @@ static inline void cti_irq_ack(struct cti *cti)
*/
static inline void cti_unlock(struct cti *cti)
{
void __iomem *base = cti->base;
unsigned long val;

val = __raw_readl(base + LOCKSTATUS);

if (val & 1) {
val = LOCKCODE;
__raw_writel(val, base + LOCKACCESS);
}
__raw_writel(LOCKCODE, cti->base + LOCKACCESS);
}

/**
Expand All @@ -166,14 +158,6 @@ static inline void cti_unlock(struct cti *cti)
*/
static inline void cti_lock(struct cti *cti)
{
void __iomem *base = cti->base;
unsigned long val;

val = __raw_readl(base + LOCKSTATUS);

if (!(val & 1)) {
val = ~LOCKCODE;
__raw_writel(val, base + LOCKACCESS);
}
__raw_writel(~LOCKCODE, cti->base + LOCKACCESS);
}
#endif

0 comments on commit baa53b6

Please sign in to comment.