On Thu, Oct 03, 2013 at 18:12, Philip Guenther wrote: > How about we take an idea from FreeBSD and have hardclock() just set a > flag on the thread and then have the thread send SIGPROF (and SIGVTALRM) > to itself from userret(). The signal gets sent by the thread itself right > before it checks for pending signals when returning to userspace, so > that's absolutely as soon as possible, and it's done from process context > instead of from softclock by a timeout, so no "which CPU are we on?" > issues that might delay the delivery.
I approve of all diffs that eliminate useless trampolines. I have no idea if the diff works, but I will provisionally ok the idea.
