Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62647
b: refs/heads/master
c: 0762097
h: refs/heads/master
i:
  62645: b7ee420
  62643: d2ddf88
  62639: d018e82
v: v3
  • Loading branch information
Catalin Marinas authored and Russell King committed Jul 20, 2007
1 parent 7ea710f commit 7930dd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13a63ab289627e977a045864b36792cf0b61364a
refs/heads/master: 0762097625711e829a008b64f42dc0ec74abb284
6 changes: 6 additions & 0 deletions trunk/arch/arm/mm/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/init.h>
#include <linux/spinlock.h>

#include <asm/cacheflush.h>
#include <asm/io.h>
Expand All @@ -25,14 +26,19 @@
#define CACHE_LINE_SIZE 32

static void __iomem *l2x0_base;
static DEFINE_SPINLOCK(l2x0_lock);

static inline void sync_writel(unsigned long val, unsigned long reg,
unsigned long complete_mask)
{
unsigned long flags;

spin_lock_irqsave(&l2x0_lock, flags);
writel(val, l2x0_base + reg);
/* wait for the operation to complete */
while (readl(l2x0_base + reg) & complete_mask)
;
spin_unlock_irqrestore(&l2x0_lock, flags);
}

static inline void cache_sync(void)
Expand Down

0 comments on commit 7930dd3

Please sign in to comment.