Messages in this thread |  | | Date | Thu, 09 Nov 2000 10:00:51 -0800 | From | George Anzinger <> | Subject | Re: fpu now a must in kernel |
| |
Andi Kleen wrote: > > On Thu, Nov 09, 2000 at 12:27:29PM +1300, david wrote: > > > > 2 . put the save / restore code in my code (NOT! GOOD! i do not wont to > > do it this way it is not the right way) > > It is the right way because it only penalizes your code, not everybody else. > This is a MAJOR drag on preemptability. MUCH better to keep it out of the kernel. Barring that, since context switch does not (and should not) save/restore fp state, the using code must be preemption locked. Sound folks won't like this.
Maybe you could explain why you think you need this and the community here could suggest an alternative way to do the same or better.
By the way, since the kernel is not yet preemptable, you could use empty macros to lock preemption. This way, when preemption comes (2.5) your code will be easily found.
George - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |