• I
    rt2x00: Reduce calls to bbp_read() · eb20b4e8
    Ivo van Doorn 提交于
    The link_tuner() function will always call bbp_read()
    at the start of the function. Because this is an
    indirect register access has some costs attached
    to it (especially for USB hardware).
    
    We already store the value read from the register
    into the vgc_level value inside the link structure.
    Instead of reading from the register we can read that
    field directly and base the tuner on that value.
    
    This reduces the time the registers are locked with
    the csr_mutex and speeds up the link_tuner processing.
    Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    eb20b4e8
rt2x00.h 24.8 KB