]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge branch 'x86/fpu'
authorIngo Molnar <mingo@kernel.org>
Tue, 9 Feb 2016 16:03:06 +0000 (17:03 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 9 Feb 2016 16:03:06 +0000 (17:03 +0100)
1  2 
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/traps.c

Simple merge
index 410e8e2700c5813c99975125ce3906efc0f828a3,36a9c017540e408bea31b6d80dd077d9ccbfd973..1e630d1b7ad9c1ce08be101aaa3e14d68951906a
@@@ -741,13 -750,12 +741,12 @@@ dotraplinkage voi
  do_device_not_available(struct pt_regs *regs, long error_code)
  {
        RCU_LOCKDEP_WARN(!rcu_is_watching(), "entry code didn't wake RCU");
-       BUG_ON(use_eager_fpu());
  
  #ifdef CONFIG_MATH_EMULATION
-       if (read_cr0() & X86_CR0_EM) {
+       if (!boot_cpu_has(X86_FEATURE_FPU) && (read_cr0() & X86_CR0_EM)) {
                struct math_emu_info info = { };
  
 -              conditional_sti(regs);
 +              cond_local_irq_enable(regs);
  
                info.regs = regs;
                math_emulate(&info);