Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

alpha: fix lazy-FPU mis(merged/applied/whatnot)

Looks like a braino that used to be fixed in e.g. #next.alpha
had gotten into alpha.git cherry-picked version of that patch.

Sure, alpha has no preempt, but preempt_enable() in place of
preempt_disable() is actively confusing the readers...

Other than that, the cherry-picked variant matches what I have.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro c64c67c0 fe15c26e

+2 -2
+2 -2
arch/alpha/lib/fpreg.c
··· 23 23 24 24 if (unlikely(reg >= 32)) 25 25 return 0; 26 - preempt_enable(); 26 + preempt_disable(); 27 27 if (current_thread_info()->status & TS_SAVED_FP) 28 28 val = current_thread_info()->fp[reg]; 29 29 else switch (reg) { ··· 133 133 if (unlikely(reg >= 32)) 134 134 return 0; 135 135 136 - preempt_enable(); 136 + preempt_disable(); 137 137 if (current_thread_info()->status & TS_SAVED_FP) { 138 138 LDT(0, current_thread_info()->fp[reg]); 139 139 STS(0, val);