[lkml]   [2007]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH -rt 2/5] Thread Migration Preemption - v2
    On 07/14, Peter Zijlstra wrote:
    > From: Mathieu Desnoyers <>
    > This patch adds the ability to protect critical sections from migration to
    > another CPU without disabling preemption.
    > This will be useful to minimize the amount of preemption disabling for the -rt
    > patch. It will help leveraging improvements brought by the local_t types in
    > asm/local.h (see Documentation/local_ops.txt). Note that the updates done to
    > variables protected by migrate_disable must be either atomic or protected from
    > concurrent updates done by other threads.
    > Typical use:
    > migrate_disable();
    > local_inc(&__get_cpu_var(&my_local_t_var));
    > migrate_enable();
    > Which will increment the variable atomically wrt the local CPU.

    I still think this patch is buggy. Perhaps I am wrong. Please look at

    there was no any reply.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-07-14 19:17    [W:0.026 / U:0.140 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site