[lkml]   [2005]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: [patch] Real-Time Preemption, -RT-2.6.11-rc3-V0.7.38-01

    Here's a trivial patch to help others from freaking out when they see on
    a show_trace that most of their processes are TASK_UNINTERRUPTIBLE.

    Index: kernel/sched.c
    --- kernel/sched.c (revision 75)
    +++ kernel/sched.c (working copy)
    @@ -4489,7 +4489,7 @@
    task_t *relative;
    unsigned state;
    unsigned long free = 0;
    - static const char *stat_nam[] = { "R", "S", "D", "T", "t", "Z", "X" };
    + static const char *stat_nam[] = { "R", "M", "S", "D", "T", "t", "Z", "X" };

    printk("%-13.13s [%p]", p->comm, p);
    state = p->state ? __ffs(p->state) + 1 : 0;

    I figure that "M" would be a good fit for TASK_RUNNING_MUTEX.

    -- Steve

    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: 2005-03-22 14:10    [W:0.043 / U:2.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site