x86/fpu: Reorganize fpu/internal.h
authorIngo Molnar <mingo@kernel.org>
Tue, 5 May 2015 13:56:33 +0000 (15:56 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:12 +0000 (15:48 +0200)
commitb1b64dc3558b7bde2917f9fc4f573f6a4787a95c
treea1c74ea7462d27adb8cb744d1a74162b9342d587
parente97131a8391e9fce5126ed54dc66c9d8965d3b4e
x86/fpu: Reorganize fpu/internal.h

fpu/internal.h has grown organically, with not much high level structure,
which hurts its readability.

Organize the various definitions into 5 sections:

 - high level FPU state functions
 - FPU/CPU feature flag helpers
 - fpstate handling functions
 - FPU context switching helpers
 - misc helper functions

Other related changes:

 - Move MXCSR_DEFAULT to fpu/types.h.
 - drop the unused X87_FSW_ES define

No change in functionality.

Cc: Andy Lutomirski <luto@amacapital.net>
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: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/fpu/internal.h
arch/x86/include/asm/fpu/types.h