OK, I see - goodness() will return 0 if SCHED_YIELD is set for a
process.
> > I think I see what Andrea means here. Scenario: CPU 0 runs process A,
> > CPU 1 is idle, runqueue has only A. RT process B wakes up, previously
> > run on CPU 0 and decides switching to CPU 1 is too expensive. Process
> > A calls sched_yield(). You better reschedule.
>
> "decides switching to CPU 1 is too expensive" does not happen when CPU1
> is idle. see wake_up_process()/reschedule_idle().
Andrea is right here.
Best,
Borislav
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/