• Alex Elder's avatar
    net: ipa: introduce ipa_qtime_val() · 8be440e1
    Alex Elder authored
    Create a new function ipa_qtime_val() which returns a value that
    indicates what should be encoded for a register with a time field
    expressed using Qtime.  Use it to factor out common code in
    aggr_time_limit_encoded() and hol_block_timer_qtime_val().
    
    Rename aggr_time_limit_encoded() and hol_block_timer_qtime_val() so
    their names are both verbs ending in "encode".  Rename the "limit"
    argument to the former to be "milliseconds" for consistency.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    8be440e1
ipa_endpoint.c 53.8 KB