diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:31 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:31 -0500 |
commit | dbcb4660246c240a159b4037067fdedb563a63cb (patch) | |
tree | a6f7bbbd1165c14a245bfb6485302b97c6093d2e /include/asm-x86/processor.h | |
parent | cb38d377337cadd73fe4c582f77c5273685aeb71 (diff) |
x86: unify TASK_ALIGN definitions
This patch moves the TASK_ALIGN constraints to common header.
The base of it is the same for x86_64 and i386. The only difference
is the presence of vSMP in x86_64. As it's not a worry in i386, we can
safely use the same code for both.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/processor.h')
-rw-r--r-- | include/asm-x86/processor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index 0e82ad5a22a4..8b56c23f043d 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h | |||
@@ -22,6 +22,14 @@ static inline void *current_text_addr(void) | |||
22 | return pc; | 22 | return pc; |
23 | } | 23 | } |
24 | 24 | ||
25 | #ifdef CONFIG_X86_VSMP | ||
26 | #define ARCH_MIN_TASKALIGN (1 << INTERNODE_CACHE_SHIFT) | ||
27 | #define ARCH_MIN_MMSTRUCT_ALIGN (1 << INTERNODE_CACHE_SHIFT) | ||
28 | #else | ||
29 | #define ARCH_MIN_TASKALIGN 16 | ||
30 | #define ARCH_MIN_MMSTRUCT_ALIGN 0 | ||
31 | #endif | ||
32 | |||
25 | static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, | 33 | static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, |
26 | unsigned int *ecx, unsigned int *edx) | 34 | unsigned int *ecx, unsigned int *edx) |
27 | { | 35 | { |