diff options
-rw-r--r-- | arch/x86/include/asm/system.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/system.h b/arch/x86/include/asm/system.h index b8fe48ee2ed9..b4293fc8b798 100644 --- a/arch/x86/include/asm/system.h +++ b/arch/x86/include/asm/system.h | |||
@@ -457,4 +457,13 @@ static inline void rdtsc_barrier(void) | |||
457 | alternative(ASM_NOP3, "lfence", X86_FEATURE_LFENCE_RDTSC); | 457 | alternative(ASM_NOP3, "lfence", X86_FEATURE_LFENCE_RDTSC); |
458 | } | 458 | } |
459 | 459 | ||
460 | #ifdef CONFIG_MCORE2 | ||
461 | /* | ||
462 | * We handle most unaligned accesses in hardware. On the other hand | ||
463 | * unaligned DMA can be quite expensive on some Nehalem processors. | ||
464 | * | ||
465 | * Based on this we disable the IP header alignment in network drivers. | ||
466 | */ | ||
467 | #define NET_IP_ALIGN 0 | ||
468 | #endif | ||
460 | #endif /* _ASM_X86_SYSTEM_H */ | 469 | #endif /* _ASM_X86_SYSTEM_H */ |