lkml.org 
[lkml]   [2010]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subjectgameport: use this_cpu_read instead of lookup


    Signed-off-by: Christoph Lameter <cl@linux.com>

    ---
    drivers/input/gameport/gameport.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6/drivers/input/gameport/gameport.c
    ===================================================================
    --- linux-2.6.orig/drivers/input/gameport/gameport.c 2010-12-16 11:46:18.000000000 -0600
    +++ linux-2.6/drivers/input/gameport/gameport.c 2010-12-16 11:46:56.000000000 -0600
    @@ -123,7 +123,7 @@ static int gameport_measure_speed(struct
    }

    gameport_close(gameport);
    - return (cpu_data(raw_smp_processor_id()).loops_per_jiffy *
    + return (this_cpu_read(cpu_info.loops_per_jiffy) *
    (unsigned long)HZ / (1000 / 50)) / (tx < 1 ? 1 : tx);

    #else


    \
     
     \ /
      Last update: 2010-12-16 19:17    [W:0.031 / U:89.696 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site