diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-22 22:58:29 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-26 17:58:29 +0300 |
commit | 125009026bfc9ec929975d35344bf69d2c636e95 (patch) | |
tree | e1af2ccecedf484c3eadbe3ae05ba657bdf231a4 /tools/perf/util/sort.h | |
parent | aeb00b1aeab6dadd72c24f93bea51a46e109c2ba (diff) | |
download | linux-125009026bfc9ec929975d35344bf69d2c636e95.tar.xz |
perf cacheline: Move cacheline related routines to separate files
To disentangle util/sort.h a bit more.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-6kbf2cauas06rbqp15pyter5@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/sort.h')
-rw-r--r-- | tools/perf/util/sort.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index 5e34676a98e8..4ae155c6a808 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -204,18 +204,6 @@ static inline float hist_entry__get_percent_limit(struct hist_entry *he) return period * 100.0 / total_period; } -static inline u64 cl_address(u64 address) -{ - /* return the cacheline of the address */ - return (address & ~(cacheline_size() - 1)); -} - -static inline u64 cl_offset(u64 address) -{ - /* return the cacheline of the address */ - return (address & (cacheline_size() - 1)); -} - enum sort_mode { SORT_MODE__NORMAL, SORT_MODE__BRANCH, |