lkml.org 
[lkml]   [2005]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-01

    regarding this code:

    void synchronize_kernel(void)
    {
    long oldbatch;

    smp_mb();
    oldbatch = rcu_ctrlblk.batch;
    schedule_timeout(HZ/GRACE_PERIODS_PER_SEC);

    what is the intent of that schedule_timeout() - a fixed-period delay? Is
    that acceptable? In any case, it wont do what you think it does, you
    should use mdelay(), or do current->state = TASK_UNINTERRUPTIBLE -
    otherwise the call will just return when we are in TASK_RUNNING.

    Ingo
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:11    [W:0.021 / U:59.548 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site