Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189406
b: refs/heads/master
c: 23107c5
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas authored and Russell King committed Mar 25, 2010
1 parent 642633b commit 5ecdea6
Show file tree
Hide file tree
Showing 3 changed files with 12 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: 319f551a0a167b49b5bbb4a9ff4802046a572bc5
refs/heads/master: 23107c542068b2b94390aa333f6b330af64961e4
1 change: 1 addition & 0 deletions trunk/arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ config CACHE_L2X0
REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || ARCH_NOMADIK || ARCH_OMAP4
default y
select OUTER_CACHE
select OUTER_CACHE_SYNC
help
This option enables the L2x0 PrimeCell.

Expand Down
10 changes: 10 additions & 0 deletions trunk/arch/arm/mm/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ static inline void l2x0_flush_line(unsigned long addr)
}
#endif

static void l2x0_cache_sync(void)
{
unsigned long flags;

spin_lock_irqsave(&l2x0_lock, flags);
cache_sync();
spin_unlock_irqrestore(&l2x0_lock, flags);
}

static inline void l2x0_inv_all(void)
{
unsigned long flags;
Expand Down Expand Up @@ -225,6 +234,7 @@ void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask)
outer_cache.inv_range = l2x0_inv_range;
outer_cache.clean_range = l2x0_clean_range;
outer_cache.flush_range = l2x0_flush_range;
outer_cache.sync = l2x0_cache_sync;

printk(KERN_INFO "L2X0 cache controller enabled\n");
}

0 comments on commit 5ecdea6

Please sign in to comment.