1. 31 3月, 2016 1 次提交
  2. 19 5月, 2015 1 次提交
    • I
      x86/fpu: Rename i387.h to fpu/api.h · df6b35f4
      Ingo Molnar 提交于
      We already have fpu/types.h, move i387.h to fpu/api.h.
      
      The file name has become a misnomer anyway: it offers generic FPU APIs,
      but is not limited to i387 functionality.
      Reviewed-by: NBorislav 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: NIngo Molnar <mingo@kernel.org>
      df6b35f4
  3. 21 8月, 2013 1 次提交
  4. 19 9月, 2012 1 次提交
    • S
      x86, fpu: always use kernel_fpu_begin/end() for in-kernel FPU usage · 841e3604
      Suresh Siddha 提交于
      use kernel_fpu_begin/end() instead of unconditionally accessing cr0 and
      saving/restoring just the few used xmm/ymm registers.
      
      This has some advantages like:
      * If the task's FPU state is already active, then kernel_fpu_begin()
        will just save the user-state and avoiding the read/write of cr0.
        In general, cr0 accesses are much slower.
      
      * Manual save/restore of xmm/ymm registers will affect the 'modified' and
        the 'init' optimizations brought in the by xsaveopt/xrstor
        infrastructure.
      
      * Foward compatibility with future vector register extensions will be a
        problem if the xmm/ymm registers are manually saved and restored
        (corrupting the extended state of those vector registers).
      
      With this patch, there was no significant difference in the xor throughput
      using AVX, measured during boot.
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      Link: http://lkml.kernel.org/r/1345842782-24175-5-git-send-email-suresh.b.siddha@intel.com
      Cc: Jim Kukunas <james.t.kukunas@linux.intel.com>
      Cc: NeilBrown <neilb@suse.de>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      841e3604
  5. 22 5月, 2012 1 次提交