diff options
author | David S. Miller <davem@davemloft.net> | 2006-01-31 18:31:38 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 01:11:18 -0800 |
commit | bd40791e1d289d807b8580abe1f117e9c62894e4 (patch) | |
tree | 2b47e24c8dc0e668dfd7ba0e3879165180c49c65 /include/asm-sparc64/mmu_context.h | |
parent | 98c5584cfc47932c4f3ccf5eee2e0bae1447b85e (diff) | |
download | kernel_samsung_aries-bd40791e1d289d807b8580abe1f117e9c62894e4.zip kernel_samsung_aries-bd40791e1d289d807b8580abe1f117e9c62894e4.tar.gz kernel_samsung_aries-bd40791e1d289d807b8580abe1f117e9c62894e4.tar.bz2 |
[SPARC64]: Dynamically grow TSB in response to RSS growth.
As the RSS grows, grow the TSB in order to reduce the likelyhood
of hash collisions and thus poor hit rates in the TSB.
This definitely needs some serious tuning.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/mmu_context.h')
-rw-r--r-- | include/asm-sparc64/mmu_context.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-sparc64/mmu_context.h b/include/asm-sparc64/mmu_context.h index 0a950f1..1d23267 100644 --- a/include/asm-sparc64/mmu_context.h +++ b/include/asm-sparc64/mmu_context.h @@ -32,6 +32,13 @@ static inline void tsb_context_switch(struct mm_struct *mm) mm->context.tsb_map_pte); } +extern void tsb_grow(struct mm_struct *mm, unsigned long mm_rss, gfp_t gfp_flags); +#ifdef CONFIG_SMP +extern void smp_tsb_sync(struct mm_struct *mm); +#else +#define smp_tsb_sync(__mm) do { } while (0) +#endif + /* Set MMU context in the actual hardware. */ #define load_secondary_context(__mm) \ __asm__ __volatile__("stxa %0, [%1] %2\n\t" \ |