Re: libpthread: don't context switch to yourself

2011-07-02 Thread Marco S Hyman
On Jul 2, 2011, at 3:06 PM, Philip Guenther wrote: > In libpthread, if the scheduler picks the current thread as the next to > run, it still does the full save+restore of errno, FPU, and regs, saving > them and then restoring the same values again. That's kinda silly, so > jump around that if

libpthread: don't context switch to yourself

2011-07-02 Thread Philip Guenther
In libpthread, if the scheduler picks the current thread as the next to run, it still does the full save+restore of errno, FPU, and regs, saving them and then restoring the same values again. That's kinda silly, so jump around that if switching to the current thread. oks? Philip Guenther In