lkml.org 
[lkml]   [2003]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 13/13] use cpu_relax() in busy loop
    Replace busy loop rep_nop() with cpu_relax().

    This is bordering on a gratuitous change given the x86_64 def'n of
    cpu_relax(). But I was fixing up other busy loops, and my grep found
    this one.

    ===== arch/x86_64/kernel/smpboot.c 1.21 vs edited =====
    --- 1.21/arch/x86_64/kernel/smpboot.c Sat Aug 23 05:13:33 2003
    +++ edited/arch/x86_64/kernel/smpboot.c Thu Sep 18 10:26:41 2003
    @@ -282,7 +282,7 @@
    */
    if (cpu_isset(cpuid, cpu_callout_map))
    break;
    - rep_nop();
    + cpu_relax();
    }

    if (!time_before(jiffies, timeout)) {
    -
    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 13:48    [W:3.224 / U:1.628 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site