From: John Jacques <john.jacq...@intel.com>

Signed-off-by: John Jacques <john.jacq...@intel.com>
---
 arch/arm/include/asm/kmap_types.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/kmap_types.h 
b/arch/arm/include/asm/kmap_types.h
index d4cfe9a..ce78a1d 100644
--- a/arch/arm/include/asm/kmap_types.h
+++ b/arch/arm/include/asm/kmap_types.h
@@ -4,11 +4,15 @@
 /*
  * This is the "bare minimum".  AIO seems to require this.
  */
+#ifdef CONFIG_SMP
 #if (CONFIG_NR_CPUS > 15)
 /* Prevent overlap between fixmap mapping and CPU vector page for 16th core */
 #define KM_TYPE_NR 15
 #else
 #define KM_TYPE_NR 16
 #endif
+#else
+#define KM_TYPE_NR 16
+#endif
 
 #endif
-- 
1.9.1

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to