[LITMUS^RT] (SOLVED?) Re: linked but never scheduled

Björn Brandenburg bbb at mpi-sws.org
Mon Sep 17 16:27:04 CEST 2012


On Sep 17, 2012, at 4:17 PM, Glenn Elliott wrote:

> 
> On Sep 17, 2012, at 6:12 AM, Björn Brandenburg <bbb at mpi-sws.org> wrote:
> 
>> I think it should suffice to call sched_state_validate_switch() in schedule_tail() and adding the required non-premptivity. If sched_state_validate_switch() fails, then call litmus_reschedule_local(), which will cause the scheduler to be invoked to reconsider its decision at the earliest possible moment.
> 
> I have created a patch following Björn's suggestions.  It seems to do the trick.  I no longer hang in my test case.  I've pushed the patch to github as "prop/sched_fork".

Thanks, looks good to me. Queued up for merging, unless there are objections from others.

>  Did I miss any necessary trace events in this patch?

Mh, probably the Feather-Trace overhead event TS_CXS_END. The sched_trace() events seem complete.

Thanks,
Björn





More information about the litmus-dev mailing list