aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorJeff Kirsher <[email protected]>2015-05-02 01:20:04 -0700
committerJeff Kirsher <[email protected]>2015-05-04 01:38:08 -0700
commit30544af5483755b11bb5924736e9e0b45ef0644a (patch)
treeee3c5c38622e7147195e70b39ca8dce85157ac04 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent55e7fe5b9cd94e6accb128e6a1e5902e9018deef (diff)
e1000e: fix call to do_div() to use u64 arg
We were using s64 for lat_ns (latency nano-second value) since in our calculations a negative value could be a resultant. For negative values, we then assign lat_ns to be zero, so the value passed to do_div() was never negative, but do_div() expects the argument type to be u64, so do a cast to resolve a compile warning seen on PowerPC. CC: Yanjiang Jin <[email protected]> CC: Yanir Lubetkin <[email protected]> Reported-by: Yanjiang Jin <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Tested-by: Aaron Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions