diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-09-09 10:14:19 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-09 10:14:19 +0200 |
commit | f9e2bdfdbb4c9da13422b349227be8c7b41dbd44 (patch) | |
tree | 0cda3a72cbf51cf4e907e0cbef4dce24a6d08b7e /arch/sh/include/asm/fixmap.h | |
parent | sh: Fix up redundant cache flushing for PAGE_SIZE > 4k. (diff) | |
download | linux-f9e2bdfdbb4c9da13422b349227be8c7b41dbd44.tar.xz linux-f9e2bdfdbb4c9da13422b349227be8c7b41dbd44.zip |
sh: Factor in cpu id for selection of cache colour fixmap.
In the SMP VIPT case the page copy/clear ops still perform colouring,
care needs to be taken that CPUs don't end up stepping on each other,
so we give them a bit of room to work with.
At the same time, we reduce the worst-case colouring given that these
pages are always consumed.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/fixmap.h')
-rw-r--r-- | arch/sh/include/asm/fixmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/include/asm/fixmap.h b/arch/sh/include/asm/fixmap.h index 721fcc4d5e98..76c5a3099cb8 100644 --- a/arch/sh/include/asm/fixmap.h +++ b/arch/sh/include/asm/fixmap.h @@ -14,9 +14,9 @@ #define _ASM_FIXMAP_H #include <linux/kernel.h> +#include <linux/threads.h> #include <asm/page.h> #ifdef CONFIG_HIGHMEM -#include <linux/threads.h> #include <asm/kmap_types.h> #endif @@ -46,9 +46,9 @@ * fix-mapped? */ enum fixed_addresses { -#define FIX_N_COLOURS 16 +#define FIX_N_COLOURS 8 FIX_CMAP_BEGIN, - FIX_CMAP_END = FIX_CMAP_BEGIN + FIX_N_COLOURS, + FIX_CMAP_END = FIX_CMAP_BEGIN + (FIX_N_COLOURS * NR_CPUS), FIX_UNCACHED, #ifdef CONFIG_HIGHMEM FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ |