diff options
Diffstat (limited to 'tools/perf/util/util.c')
-rw-r--r-- | tools/perf/util/util.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index 6fd130a5d8f2..44211e483fbf 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c | |||
@@ -43,26 +43,6 @@ void perf_set_multithreaded(void) | |||
43 | 43 | ||
44 | unsigned int page_size; | 44 | unsigned int page_size; |
45 | 45 | ||
46 | #ifdef _SC_LEVEL1_DCACHE_LINESIZE | ||
47 | #define cache_line_size(cacheline_sizep) *cacheline_sizep = sysconf(_SC_LEVEL1_DCACHE_LINESIZE) | ||
48 | #else | ||
49 | static void cache_line_size(int *cacheline_sizep) | ||
50 | { | ||
51 | if (sysfs__read_int("devices/system/cpu/cpu0/cache/index0/coherency_line_size", cacheline_sizep)) | ||
52 | pr_debug("cannot determine cache line size"); | ||
53 | } | ||
54 | #endif | ||
55 | |||
56 | int cacheline_size(void) | ||
57 | { | ||
58 | static int size; | ||
59 | |||
60 | if (!size) | ||
61 | cache_line_size(&size); | ||
62 | |||
63 | return size; | ||
64 | } | ||
65 | |||
66 | int sysctl_perf_event_max_stack = PERF_MAX_STACK_DEPTH; | 46 | int sysctl_perf_event_max_stack = PERF_MAX_STACK_DEPTH; |
67 | int sysctl_perf_event_max_contexts_per_stack = PERF_MAX_CONTEXTS_PER_STACK; | 47 | int sysctl_perf_event_max_contexts_per_stack = PERF_MAX_CONTEXTS_PER_STACK; |
68 | 48 | ||