SMP and setrunnable()- scheduler 4bsd

John Baldwin jhb at FreeBSD.org
Thu Jul 10 13:06:31 PDT 2003


On 10-Jul-2003 Julian Elischer wrote:
> BTW in cpu_idle()
> 
>#ifdef SMP
>         if (mp_grab_cpu_hlt())
>                 return;
>#endif
> 
> 
> whta gain is there in this returning.. it will anyhow if there is work
> to do, and sched_runnable is called either way..
> 
> couldn't it just be 
> 
>#ifdef SMP
>       mp_grab_cpu_hlt();
>#endif
> 
> ?

*shrug*, ps@ stuck that in there and I didn't really look too closely.

-- 

John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


More information about the freebsd-current mailing list