On Fri, Mar 18, 2016 at 3:05 PM, Dario Faggioli <dario.faggi...@citrix.com> wrote: > by using the sched_switch hook that we have introduced in > the various schedulers. > > The key is to let the actual switch of scheduler and the > remapping of the scheduler lock for the CPU (if necessary) > happen together (in the same critical section) protected > (at least) by the old scheduler lock for the CPU. > > This also means that, in Credit2 and RTDS, we can get rid > of the code that was doing the scheduler lock remapping > in csched2_free_pdata() and rt_free_pdata(), and of their > triggering ASSERT-s. > > Signed-off-by: Dario Faggioli <dario.faggi...@citrix.com> > --- > Cc: George Dunlap <george.dun...@eu.citrix.com> > Cc: Meng Xu <men...@cis.upenn.edu> > Cc: Tianyang Chen <ti...@seas.upenn.edu> > --- > xen/common/sched_credit.c | 9 +++++++++ > xen/common/sched_credit2.c | 28 ++++++++++------------------ > xen/common/sched_rt.c | 13 ------------- > xen/common/schedule.c | 30 +++++++++++++++++++++---------
For the sched_rt.c and schedule.c, Reviewed-by: Meng Xu <men...@cis.upenn.edu> ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel