提交 2adee9b3 编写于 作者: S Suresh Siddha 提交者: Ingo Molnar

x86: fpu xstate split fix

Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 1679f271
...@@ -9,5 +9,6 @@ ...@@ -9,5 +9,6 @@
extern void arch_task_cache_init(void); extern void arch_task_cache_init(void);
extern void free_thread_info(struct thread_info *ti); extern void free_thread_info(struct thread_info *ti);
extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
#define arch_task_cache_init arch_task_cache_init
#endif #endif
#endif /* _ASM_X86_THREAD_INFO_H */ #endif /* _ASM_X86_THREAD_INFO_H */
...@@ -132,9 +132,13 @@ void __put_task_struct(struct task_struct *tsk) ...@@ -132,9 +132,13 @@ void __put_task_struct(struct task_struct *tsk)
free_task(tsk); free_task(tsk);
} }
void __attribute__((weak)) arch_task_cache_init(void) /*
{ * macro override instead of weak attribute alias, to workaround
} * gcc 4.1.0 and 4.1.1 bugs with weak attribute and empty functions.
*/
#ifndef arch_task_cache_init
#define arch_task_cache_init()
#endif
void __init fork_init(unsigned long mempages) void __init fork_init(unsigned long mempages)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册