Commit 32b5e0db authored by Linus Torvalds's avatar Linus Torvalds

Enable prefetching on P4/PIII class machines with CONFIG_X86_PREFETCH

parent 26ac8e19
...@@ -283,6 +283,11 @@ config X86_OOSTORE ...@@ -283,6 +283,11 @@ config X86_OOSTORE
depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6
default y default y
config X86_PREFETCH
bool
depends on MPENTIUMIII || MP4
default y
config HUGETLB_PAGE config HUGETLB_PAGE
bool "Huge TLB Page Support" bool "Huge TLB Page Support"
help help
......
...@@ -486,7 +486,7 @@ static inline void rep_nop(void) ...@@ -486,7 +486,7 @@ static inline void rep_nop(void)
#define cpu_relax() rep_nop() #define cpu_relax() rep_nop()
/* Prefetch instructions for Pentium III and AMD Athlon */ /* Prefetch instructions for Pentium III and AMD Athlon */
#ifdef CONFIG_MPENTIUMIII #ifdef CONFIG_X86_PREFETCH
#define ARCH_HAS_PREFETCH #define ARCH_HAS_PREFETCH
extern inline void prefetch(const void *x) extern inline void prefetch(const void *x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment