aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/processor.h8
-rw-r--r--include/asm-x86/processor_32.h1
-rw-r--r--include/asm-x86/processor_64.h8
3 files changed, 8 insertions, 9 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
25static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, 33static 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{
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
index 8cb05cec3cb9..8380243a19d3 100644
--- a/include/asm-x86/processor_32.h
+++ b/include/asm-x86/processor_32.h
@@ -174,7 +174,6 @@ typedef struct {
174 unsigned long seg; 174 unsigned long seg;
175} mm_segment_t; 175} mm_segment_t;
176 176
177#define ARCH_MIN_TASKALIGN 16
178 177
179#define INIT_THREAD { \ 178#define INIT_THREAD { \
180 .sp0 = sizeof(init_stack) + (long)&init_stack, \ 179 .sp0 = sizeof(init_stack) + (long)&init_stack, \
diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h
index 4b4ec3d79910..7fe5c1461c83 100644
--- a/include/asm-x86/processor_64.h
+++ b/include/asm-x86/processor_64.h
@@ -117,14 +117,6 @@ struct orig_ist {
117}; 117};
118DECLARE_PER_CPU(struct orig_ist, orig_ist); 118DECLARE_PER_CPU(struct orig_ist, orig_ist);
119 119
120#ifdef CONFIG_X86_VSMP
121#define ARCH_MIN_TASKALIGN (1 << INTERNODE_CACHE_SHIFT)
122#define ARCH_MIN_MMSTRUCT_ALIGN (1 << INTERNODE_CACHE_SHIFT)
123#else
124#define ARCH_MIN_TASKALIGN 16
125#define ARCH_MIN_MMSTRUCT_ALIGN 0
126#endif
127
128#define INIT_THREAD { \ 120#define INIT_THREAD { \
129 .sp0 = (unsigned long)&init_stack + sizeof(init_stack) \ 121 .sp0 = (unsigned long)&init_stack + sizeof(init_stack) \
130} 122}