]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, xsave: Separate fpu and xsave initialization
authorRobert Richter <robert.richter@amd.com>
Wed, 21 Jul 2010 17:03:52 +0000 (19:03 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 21 Jul 2010 21:06:04 +0000 (14:06 -0700)
commit0e49bf66d2ca649b167428adddbbbe9d9bd4894c
tree741f170dbb160ece127b2ab497f9fc9d1e3bd1bc
parent82d4150cec83b9775f84810b39a1c0b91585d429
x86, xsave: Separate fpu and xsave initialization

As xsave also supports other than fpu features, it should be
initialized independently of the fpu. This patch moves this out of fpu
initialization.

There is also a lot of cross referencing between fpu and xsave
code. This patch reduces this by making xsave_cntxt_init() and
init_thread_xstate() static functions.

The patch moves the cpu_has_xsave check at the beginning of
xsave_init(). All other checks may removed then.

Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <1279731838-1522-2-git-send-email-robert.richter@amd.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/i387.h
arch/x86/include/asm/xsave.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/i387.c
arch/x86/kernel/xsave.c