Messages in this thread | | | Date | Sat, 01 Feb 2014 12:16:43 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] Make math_state_restore() save and restore the interrupt flag |
| |
On 02/01/2014 11:46 AM, Linus Torvalds wrote: > > .. which *does* actually bring up something that might work, and might > be a good idea: remove the "restore math state or set TS" from the > normal kernel paths *entirely*, and move it to the "return to user > space" phase. >
The task switch code would have to be aware in case of preemption, though. The nice thing about *that* is that we could probably completely drop the notion that we can't preempt an FPU-using kernel task.
-hpa
| |