aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-04-16 10:25:35 +0200
committerIngo Molnar <mingo@elte.hu>2008-04-19 19:19:55 +0200
commit2adee9b30d1382fba97825b9c50e4f50a0117c36 (patch)
tree275bcff11f81a1c3e23fd2f5777f7e37d906717a /kernel
parent1679f2710ac58df580d3716fab1f42ae50a226eb (diff)
downloadkernel_samsung_smdk4412-2adee9b30d1382fba97825b9c50e4f50a0117c36.zip
kernel_samsung_smdk4412-2adee9b30d1382fba97825b9c50e4f50a0117c36.tar.gz
kernel_samsung_smdk4412-2adee9b30d1382fba97825b9c50e4f50a0117c36.tar.bz2
x86: fpu xstate split fix
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 44a1819..89fe414 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -132,9 +132,13 @@ void __put_task_struct(struct task_struct *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)
{