Skip to content

Commit c64c67c

Browse files
author
Al Viro
committed
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 <[email protected]>
1 parent fe15c26 commit c64c67c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/alpha/lib/fpreg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ alpha_read_fp_reg (unsigned long reg)
2323

2424
if (unlikely(reg >= 32))
2525
return 0;
26-
preempt_enable();
26+
preempt_disable();
2727
if (current_thread_info()->status & TS_SAVED_FP)
2828
val = current_thread_info()->fp[reg];
2929
else switch (reg) {
@@ -133,7 +133,7 @@ alpha_read_fp_reg_s (unsigned long reg)
133133
if (unlikely(reg >= 32))
134134
return 0;
135135

136-
preempt_enable();
136+
preempt_disable();
137137
if (current_thread_info()->status & TS_SAVED_FP) {
138138
LDT(0, current_thread_info()->fp[reg]);
139139
STS(0, val);

0 commit comments

Comments
 (0)