Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189405
b: refs/heads/master
c: 319f551
h: refs/heads/master
i:
  189403: b8e4168
v: v3
  • Loading branch information
Catalin Marinas authored and Russell King committed Mar 25, 2010
1 parent b0a6bb3 commit 642633b
Show file tree
Hide file tree
Showing 3 changed files with 21 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: 33f663ff9186da1bcc88dc7830b3a632bd472da5
refs/heads/master: 319f551a0a167b49b5bbb4a9ff4802046a572bc5
14 changes: 14 additions & 0 deletions trunk/arch/arm/include/asm/outercache.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ struct outer_cache_fns {
void (*inv_range)(unsigned long, unsigned long);
void (*clean_range)(unsigned long, unsigned long);
void (*flush_range)(unsigned long, unsigned long);
#ifdef CONFIG_OUTER_CACHE_SYNC
void (*sync)(void);
#endif
};

#ifdef CONFIG_OUTER_CACHE
Expand Down Expand Up @@ -58,4 +61,15 @@ static inline void outer_flush_range(unsigned long start, unsigned long end)

#endif

#ifdef CONFIG_OUTER_CACHE_SYNC
static inline void outer_sync(void)
{
if (outer_cache.sync)
outer_cache.sync();
}
#else
static inline void outer_sync(void)
{ }
#endif

#endif /* __ASM_OUTERCACHE_H */
6 changes: 6 additions & 0 deletions trunk/arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,12 @@ config NEEDS_SYSCALL_FOR_CMPXCHG
config OUTER_CACHE
bool

config OUTER_CACHE_SYNC
bool
help
The outer cache has a outer_cache_fns.sync function pointer
that can be used to drain the write buffer of the outer cache.

config CACHE_FEROCEON_L2
bool "Enable the Feroceon L2 cache controller"
depends on ARCH_KIRKWOOD || ARCH_MV78XX0
Expand Down

0 comments on commit 642633b

Please sign in to comment.