summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorAvi Kivity2010-05-06 10:45:45 +0200
committerH. Peter Anvin2010-05-10 19:39:33 +0200
commitc9ad488289144ae5ef53b012e15895ef1f5e4bb6 (patch)
tree06c29cda09e204d3b0b5b3d9a2a97bda0b4e340d /arch/x86/kernel/process.c
parentx86-32: Don't set ignore_fpu_irq in simd exception (diff)
downloadkernel-qcow2-linux-c9ad488289144ae5ef53b012e15895ef1f5e4bb6.tar.gz
kernel-qcow2-linux-c9ad488289144ae5ef53b012e15895ef1f5e4bb6.tar.xz
kernel-qcow2-linux-c9ad488289144ae5ef53b012e15895ef1f5e4bb6.zip
x86: Eliminate TS_XSAVE
The fpu code currently uses current->thread_info->status & TS_XSAVE as a way to distinguish between XSAVE capable processors and older processors. The decision is not really task specific; instead we use the task status to avoid a global memory reference - the value should be the same across all threads. Eliminate this tie-in into the task structure by using an alternative instruction keyed off the XSAVE cpu feature; this results in shorter and faster code, without introducing a global memory reference. [ hpa: in the future, this probably should use an asm jmp ] Signed-off-by: Avi Kivity <avi@redhat.com> Acked-by: Suresh Siddha <suresh.b.siddha@intel.com> LKML-Reference: <1273135546-29690-2-git-send-email-avi@redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/process.c')
0 files changed, 0 insertions, 0 deletions