diff options
author | Rob Herring <[email protected]> | 2021-04-14 10:54:09 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-04-15 16:38:02 -0300 |
commit | 2fc83c2cd77703cfcfc1ffaa092614fb1f837292 (patch) | |
tree | 89f326cf79bb774df2d36ed699dc41684cdb1d75 /tools/perf/scripts/python/syscall-counts.py | |
parent | 2e1daee14e67fbf9b27280b974e2c680a22cabea (diff) |
tools include: Add an initial math64.h
Add an initial math64.h similar to linux/math64.h with functions
mul_u64_u64_div64() and mul_u64_u32_shr(). This isn't a direct copy of
include/linux/math64.h as that doesn't define mul_u64_u64_div64().
Implementation was written by Peter Zilkstra based on linux/math64.h
and div64.h[1]. The original implementation was not optimal on arm64 as
__int128 division is not optimal with a call out to __udivti3, so I
dropped the __int128 variant of mul_u64_u64_div64().
[1] https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Rob Herring <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Itaru Kitayama <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Will Deacon <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions