lkml.org 
[lkml]   [2013]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 38/63] sched: Introduce migrate_swap()
    On 10/07/2013 06:29 AM, Mel Gorman wrote:
    > From: Peter Zijlstra <peterz@infradead.org>
    >
    > Use the new stop_two_cpus() to implement migrate_swap(), a function that
    > flips two tasks between their respective cpus.
    >
    > I'm fairly sure there's a less crude way than employing the stop_two_cpus()
    > method, but everything I tried either got horribly fragile and/or complex. So
    > keep it simple for now.
    >
    > The notable detail is how we 'migrate' tasks that aren't runnable
    > anymore. We'll make it appear like we migrated them before they went to
    > sleep. The sole difference is the previous cpu in the wakeup path, so we
    > override this.
    >
    > Signed-off-by: Peter Zijlstra <peterz@infradead.org>
    > Signed-off-by: Mel Gorman <mgorman@suse.de>

    Reviewed-by: Rik van Riel <riel@redhat.com>

    --
    All rights reversed


    \
     
     \ /
      Last update: 2013-10-07 21:41    [W:3.035 / U:0.284 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site