Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254783
b: refs/heads/master
c: 38a8914
h: refs/heads/master
i:
  254781: 8648671
  254779: 3a1392f
  254775: 3b9db5a
  254767: 5cd633e
  254751: 183b2eb
  254719: 48ecc37
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Jul 6, 2011
1 parent 68c4c19 commit 6a7a47a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 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: 186dcaa448c0a7a99933efac2af225fc4fe82c53
refs/heads/master: 38a8914f9ac2379293944f613e6ca24b61373de8
19 changes: 13 additions & 6 deletions trunk/arch/arm/mm/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,22 @@ static void l2x0_cache_sync(void)
spin_unlock_irqrestore(&l2x0_lock, flags);
}

static void l2x0_flush_all(void)
static void __l2x0_flush_all(void)
{
unsigned long flags;

/* clean all ways */
spin_lock_irqsave(&l2x0_lock, flags);
debug_writel(0x03);
writel_relaxed(l2x0_way_mask, l2x0_base + L2X0_CLEAN_INV_WAY);
cache_wait_way(l2x0_base + L2X0_CLEAN_INV_WAY, l2x0_way_mask);
cache_sync();
debug_writel(0x00);
}

static void l2x0_flush_all(void)
{
unsigned long flags;

/* clean all ways */
spin_lock_irqsave(&l2x0_lock, flags);
__l2x0_flush_all();
spin_unlock_irqrestore(&l2x0_lock, flags);
}

Expand Down Expand Up @@ -266,7 +271,9 @@ static void l2x0_disable(void)
unsigned long flags;

spin_lock_irqsave(&l2x0_lock, flags);
writel(0, l2x0_base + L2X0_CTRL);
__l2x0_flush_all();
writel_relaxed(0, l2x0_base + L2X0_CTRL);
dsb();
spin_unlock_irqrestore(&l2x0_lock, flags);
}

Expand Down

0 comments on commit 6a7a47a

Please sign in to comment.