RE: SMP and setrunnable()- scheduler 4bsd

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 10 Jul 2003 16:06:39 -0400 (EDT)
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_at_ 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/
Received on Thu Jul 10 2003 - 11:06:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:14 UTC