a serious error in sched_ule.c?

From: Bin Ren <br260_at_cam.ac.uk>
Date: 09 Mar 2004 12:37:16 +0000
Hi, all:

I've been reading sched_ule.c and seem to find a serious error:

in 'sched_slice()':

         * Rationale:
         * KSEs in interactive ksegs get the minimum slice so that we
         * quickly notice if it abuses its advantage.

Then, there is:

        if (!SCHED_INTERACTIVE(kg)) {
                .....
                .....
        } else
                ke->ke_slice = SCHED_SLICE_INTERACTIVE;

Then, at the beginning of the file, there is:

#define SCHED_SLICE_INTERACTIVE         (slice_max)


(slice_max) for interactive KSEs???? Either this is a serious mistake or 
I'm seriously missing sth here.

Thanks,
Bin
Received on Tue Mar 09 2004 - 03:37:20 UTC

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