• G
    sched: add sched-domain roots · 57d885fe
    Gregory Haskins 提交于
    We add the notion of a root-domain which will be used later to rescope
    global variables to per-domain variables.  Each exclusive cpuset
    essentially defines an island domain by fully partitioning the member cpus
    from any other cpuset.  However, we currently still maintain some
    policy/state as global variables which transcend all cpusets.  Consider,
    for instance, rt-overload state.
    
    Whenever a new exclusive cpuset is created, we also create a new
    root-domain object and move each cpu member to the root-domain's span.
    By default the system creates a single root-domain with all cpus as
    members (mimicking the global state we have today).
    
    We add some plumbing for storing class specific data in our root-domain.
    Whenever a RQ is switching root-domains (because of repartitioning) we
    give each sched_class the opportunity to remove any state from its old
    domain and add state to the new one.  This logic doesn't have any clients
    yet but it will later in the series.
    Signed-off-by: NGregory Haskins <ghaskins@novell.com>
    CC: Christoph Lameter <clameter@sgi.com>
    CC: Paul Jackson <pj@sgi.com>
    CC: Simon Derr <simon.derr@bull.net>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    57d885fe
sched.h 59.0 KB