- One RTP_PRIO_REALTIME was meant to be RTP_PRIO_IDLE. - RTP_PRIO_FIFO was not handled. - Move the usual case first for setrunqueue() etc.
fairly machine independent C routine. gcc actually does a pretty good job of this. Reviewed by: msmith (in principle)