patch-2.3.99-pre3 linux/include/asm-i386/string.h

Next file: linux/include/asm-i386/system.h
Previous file: linux/include/asm-i386/smplock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/include/asm-i386/string.h linux/include/asm-i386/string.h
@@ -2,6 +2,7 @@
 #define _I386_STRING_H_
 
 #ifdef __KERNEL__
+#include <linux/config.h>
 /*
  * On a 486 or Pentium, we are better off not using the
  * byte string operations. But on a 386 or a PPro the
@@ -11,7 +12,7 @@
  * Also, the byte strings actually work correctly. Forget
  * the i486 routines for now as they may be broken..
  */
-#if FIXED_486_STRING && (CPU == 486 || CPU == 586)
+#if FIXED_486_STRING && defined(CONFIG_X86_USE_STRING_486)
 #include <asm/string-486.h>
 #else
 
@@ -284,8 +285,6 @@
 
 #define __HAVE_ARCH_MEMCPY
 
-#include <linux/config.h>
-
 #ifdef CONFIG_X86_USE_3DNOW
 
 /* All this just for in_interrupt() ... */
@@ -529,7 +528,7 @@
 	return addr;
 }
 
+#endif /* CONFIG_X86_USE_STRING_486 */
 #endif /* __KERNEL__ */
 
-#endif
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)