summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/fixmap.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-11-03 12:27:25 +0300
committerThomas Gleixner <tglx@linutronix.de>2020-11-07 01:14:56 +0300
commita4c33e83bca133ff979e13c784c7605e1ac143df (patch)
tree420d8dd0c6c743897d49005dd00a1ebf67de14a4 /arch/mips/include/asm/fixmap.h
parent7ac1b26b0a7288fc8f87aa8978891375f23740b2 (diff)
downloadlinux-a4c33e83bca133ff979e13c784c7605e1ac143df.tar.xz
mips/mm/highmem: Switch to generic kmap atomic
No reason having the same code in every architecture Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20201103095857.885321106@linutronix.de
Diffstat (limited to 'arch/mips/include/asm/fixmap.h')
-rw-r--r--arch/mips/include/asm/fixmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/fixmap.h b/arch/mips/include/asm/fixmap.h
index 743535be7528..beea14761cef 100644
--- a/arch/mips/include/asm/fixmap.h
+++ b/arch/mips/include/asm/fixmap.h
@@ -17,7 +17,7 @@
#include <spaces.h>
#ifdef CONFIG_HIGHMEM
#include <linux/threads.h>
-#include <asm/kmap_types.h>
+#include <asm/kmap_size.h>
#endif
/*
@@ -52,7 +52,7 @@ enum fixed_addresses {
#ifdef CONFIG_HIGHMEM
/* reserved pte's for temporary kernel mappings */
FIX_KMAP_BEGIN = FIX_CMAP_END + 1,
- FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1,
+ FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1,
#endif
__end_of_fixed_addresses
};