Re: [PATCH] sched: fix cpupri hotplug support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gregory Haskins
Date: Wednesday, June 4, 2008 - 7:28 am

>>> On Wed, Jun 4, 2008 at  7:59 AM, in message <1212580796.23439.10.camel@twins>,
Peter Zijlstra <peterz@infradead.org> wrote: 

First off, Peter, I didnt realize you were involved too.  So I apologize for omitting you in the credits. :(

Note that despite the reproduction case difference, I think we are still talking about the same basic problem here...and I think your observation would also be fixed by this patch.

The issue is that a cpu that is not online is being set to something other than INVALID in cpupri, so it comes up as a valid target during the various migration decisions.  This should now be fixed.



Yeah, I was debating how to do this.  In fact, as you can see the implementation of join/online and leave/offline is identical.  I wasnt sure if putting a join/leave in the hotplug code made sense, so I added a new callback that maps to the same logic.  Perhaps what I should have done was to s/join/online and s/leave/offline and fixed the root-domain code to use the online/offline variant.  I like this better so I will put out a v2 patch in a few minutes.


Hmm...I think I agree with you.  I will add this to v2 as well.


I think you are misinterpreting that part.  leave/join is fully functional and intact.  I just merged the two implementations to call one function (see the sched_class assignment below)



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sched: fix cpupri hotplug support, Gregory Haskins, (Tue Jun 3, 8:24 pm)
Re: [PATCH] sched: fix cpupri hotplug support, Peter Zijlstra, (Wed Jun 4, 4:59 am)
Re: [PATCH] sched: fix cpupri hotplug support, Gregory Haskins, (Wed Jun 4, 7:28 am)
Re: [PATCH] sched: fix cpupri hotplug support, Peter Zijlstra, (Wed Jun 4, 7:42 am)