summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-04-27 06:52:40 +0300
committerIngo Molnar <mingo@kernel.org>2015-05-19 16:47:50 +0300
commitc4d6ee6e2e52ec604cc1d76877791f8e8f5c79b5 (patch)
treeb0287cb4c3ef60a3c2e84503eabe5edca88820e2 /arch/x86/kernel/process.c
parent7366ed771f6ed95e4c4525c335722888a83b4b6c (diff)
downloadlinux-c4d6ee6e2e52ec604cc1d76877791f8e8f5c79b5.tar.xz
x86/fpu: Remove failure paths from fpstate-alloc low level functions
Now that we always allocate the FPU context as part of task_struct there's no need for separate allocations - remove them and their primary failure handling code. ( Note that there's still secondary error codes that have become superfluous, those will be removed in separate patches. ) Move the somewhat misplaced setup_xstate_comp() call to the core. Reviewed-by: Borislav Petkov <bp@alien8.de> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 71f4b4d2f1fd..5d37c26fa89f 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -86,16 +86,6 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
return fpu__copy(&dst->thread.fpu, &src->thread.fpu);
}
-void arch_release_task_struct(struct task_struct *tsk)
-{
- fpstate_free(&tsk->thread.fpu);
-}
-
-void arch_task_cache_init(void)
-{
- fpstate_cache_init();
-}
-
/*
* Free current thread data structures etc..
*/