x86/fpu/xstate: Move XSAVES state init to a function
authorYu-cheng Yu <yu-cheng.yu@intel.com>
Tue, 24 Jan 2017 18:25:46 +0000 (10:25 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Jan 2017 07:25:12 +0000 (08:25 +0100)
commita5828ed3d03d38399159dc17a98cefde3109a66b
tree07dc07c7f98988890801687c30964f7cdcace20a
parentdffba9a31c7769be3231c420d4b364c92ba3f1ac
x86/fpu/xstate: Move XSAVES state init to a function

Make XSTATE init similar to existing code; move it to a separate function.
There is no functionality change.

Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
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: Ravi V. Shankar <ravi.v.shankar@intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1485282346-15437-1-git-send-email-yu-cheng.yu@intel.com
[ Minor cleanliness edits. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/core.c