Subject: Re: Implementation of SCHED_M2 scheduler
To: None <tech-kern@netbsd.org>
From: Mindaugas R. <rmind@NetBSD.org>
List: tech-kern
Date: 10/09/2007 02:35:37
yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
> - i'm not sure if it's a good idea to implement SCHED_FIFO in sched_m2.c.

Why? Scheduling policy is a care of scheduler (sched_*.c by our abstraction),
not dispatcher (kern_synch.c or anything outside).

> - how about making 4bsd hook sched_pstat_proc_hook rather than
>   putting #ifdef back?

As wrote in the note, it is a workaround for now. Those calculations should
be per-LWP, so I do not think it is worth inventing some hook.

> - why r_bitmap is volatile?

No longer.

> - why sched_catchlwp is not static?

Just missed.. changed now.

> - high_pri[] should be pri_t.

Changed.

-- 
Best regards,
Mindaugas
www.NetBSD.org