lkml.org 
[lkml]   [2010]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [patch 9/12] sched: remove WAKEUP_SYNC feature
    From
    Date

    sched: remove WAKEUP_SYNC feature

    This feature never earned it's keep, remove it.

    Signed-off-by: Mike Galbraith <efault@gmx.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <new-submission>

    ---
    kernel/sched_fair.c | 4 ----
    kernel/sched_features.h | 5 -----
    2 files changed, 9 deletions(-)

    Index: linux-2.6/kernel/sched_fair.c
    ===================================================================
    --- linux-2.6.orig/kernel/sched_fair.c
    +++ linux-2.6/kernel/sched_fair.c
    @@ -1657,7 +1657,6 @@ static void check_preempt_wakeup(struct
    struct task_struct *curr = rq->curr;
    struct sched_entity *se = &curr->se, *pse = &p->se;
    struct cfs_rq *cfs_rq = task_cfs_rq(curr);
    - int sync = wake_flags & WF_SYNC;
    int scale = cfs_rq->nr_running >= sched_nr_latency;

    if (unlikely(rt_prio(p->prio)))
    @@ -1690,9 +1689,6 @@ static void check_preempt_wakeup(struct
    if (unlikely(curr->policy == SCHED_IDLE))
    goto preempt;

    - if (sched_feat(WAKEUP_SYNC) && sync)
    - goto preempt;
    -
    if (!sched_feat(WAKEUP_PREEMPT))
    return;

    Index: linux-2.6/kernel/sched_features.h
    ===================================================================
    --- linux-2.6.orig/kernel/sched_features.h
    +++ linux-2.6/kernel/sched_features.h
    @@ -23,11 +23,6 @@ SCHED_FEAT(WAKEUP_PREEMPT, 1)
    SCHED_FEAT(ASYM_GRAN, 1)

    /*
    - * Always wakeup-preempt SYNC wakeups, see SYNC_WAKEUPS.
    - */
    -SCHED_FEAT(WAKEUP_SYNC, 0)
    -
    -/*
    * Use the SYNC wakeup hint, pipes and the likes use this to indicate
    * the remote end is likely to consume the data we just wrote, and
    * therefore has cache benefit from being placed on the same cpu, see



    \
     
     \ /
      Last update: 2010-03-11 11:03    [W:0.023 / U:30.352 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site