aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2020-04-30 21:57:32 +0200
committerDavid S. Miller <[email protected]>2020-04-30 17:39:15 -0700
commitcb9d97de05646de69b997da0137b94e00cba7f99 (patch)
treea5db59a394f987769ff8e0caee3d3904cfa10dbd /tools/perf/scripts/python
parent6cf96dd4272537baf4ceab452f6276da1b8d82af (diff)
r8169: improve rtl_coalesce_choose_scale
The time limit provided by userspace is multiplied with 1000, what could result in an overflow. Therefore change the time limit parameter unit from ns to us, and avoid the problematic operation. If there's no matching scale because provided time limit is too big, return ERANGE instead of EINVAL to provide a hint to the user what's wrong. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions