• Ivo van Doorn's avatar
    rt2x00: Reduce calls to bbp_read() · eb20b4e8
    Ivo van Doorn authored
    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: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    eb20b4e8
rt73usb.c 73.7 KB