lkml.org 
[lkml]   [2012]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 7/9] drm: avoid using on_each_cpu hard coded ret value
    Date
    on_each_cpu always returns a hard coded return code of zero.

    Removing all tests based on this return value saves run time
    cycles for compares and code bloat for branches.

    CC: Michal Nazarewicz <mina86@mina86.com>
    CC: David Airlie <airlied@linux.ie>
    CC: dri-devel@lists.freedesktop.org
    ---
    drivers/gpu/drm/drm_cache.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c
    index 5928653..668653c 100644
    --- a/drivers/gpu/drm/drm_cache.c
    +++ b/drivers/gpu/drm/drm_cache.c
    @@ -75,8 +75,7 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
    return;
    }

    - if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0)
    - printk(KERN_ERR "Timed out waiting for cache flush.\n");
    + on_each_cpu(drm_clflush_ipi_handler, NULL, 1);

    #elif defined(__powerpc__)
    unsigned long i;
    --
    1.7.0.4


    \
     
     \ /
      Last update: 2012-01-03 15:23    [W:3.744 / U:0.456 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site