patch-2.3.99-pre3 linux/include/asm-i386/cache.h
Next file: linux/include/asm-i386/smplock.h
Previous file: linux/include/asm-generic/smplock.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Thu Mar 23 15:36:06 2000
- Orig file:
v2.3.99-pre2/linux/include/asm-i386/cache.h
- Orig date:
Tue Dec 7 09:32:49 1999
diff -u --recursive --new-file v2.3.99-pre2/linux/include/asm-i386/cache.h linux/include/asm-i386/cache.h
@@ -4,11 +4,9 @@
#ifndef __ARCH_I386_CACHE_H
#define __ARCH_I386_CACHE_H
+#include <linux/config.h>
+
/* bytes per L1 cache line */
-#if CPU==586 || CPU==686
-#define L1_CACHE_BYTES 32
-#else
-#define L1_CACHE_BYTES 16
-#endif
+#define L1_CACHE_BYTES CONFIG_X86_L1_CACHE_BYTES
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)