On Mon, Jul 09, 2012 at 10:47:16AM +0200, Christiano F. Haesbaert wrote:
> This no longer applies, it is probably a leftover from the days when we
> had a global runqueue. Discussed with blambert.
> 
> ok ?
> 
> Index: sched_bsd.c
> ===================================================================
> RCS file: /cvs/src/sys/kern/sched_bsd.c,v
> retrieving revision 1.29
> diff -d -u -p -r1.29 sched_bsd.c
> --- sched_bsd.c       23 Mar 2012 15:51:26 -0000      1.29
> +++ sched_bsd.c       9 Jul 2012 08:45:32 -0000
> @@ -464,16 +464,7 @@ resched_proc(struct proc *p, u_char pri)
>  
>       /*
>        * XXXSMP
> -      * Since p->p_cpu persists across a context switch,
> -      * this gives us *very weak* processor affinity, in
> -      * that we notify the CPU on which the process last
> -      * ran that it should try to switch.
> -      *
> -      * This does not guarantee that the process will run on
> -      * that processor next, because another processor might
> -      * grab it the next time it performs a context switch.
> -      *
> -      * This also does not handle the case where its last
> +      * This does not handle the case where its last
>        * CPU is running a higher-priority process, but every
>        * other CPU is running a lower-priority process.  There
>        * are ways to handle this situation, but they're not
> 

If it doesn't apply it should die. ok krw@

.... Ken

Reply via email to