[lkml]   [2001]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch] softirq performance fixes, cleanups, 2.4.10.

    On Wed, 26 Sep 2001, Mike Kravetz wrote:

    > > + if (!p->has_cpu && (p != current) && task_on_runqueue(p)) {

    > Is it really possible for a task to be 'current' without having
    > 'has_cpu' set? If so, then don't you need to compare p to 'current'
    > on all CPUs since 'current' is CPU specific?

    you are correct that the check is redundant on SMP, but ->has_cpu is not
    set on UP kernels, so the 'current' check is needed there. I did not want
    to introduce yet another #if CONFIG_SMP ifdef.


    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 13:03    [W:0.022 / U:11.844 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site