perf header: Remove unused 'cpu_nr' field from 'struct cpu_topo'
authorJiri Olsa <jolsa@kernel.org>
Wed, 13 Feb 2019 12:32:44 +0000 (13:32 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2019 18:18:09 +0000 (15:18 -0300)
Not used at all.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190213123246.4015-9-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c

index f1508adefc167cc8a6112e7ee9b66a888366ea88..61ce197c5362a235a8cb960516ad8b1dab18d1b5 100644 (file)
@@ -563,7 +563,6 @@ static int write_cmdline(struct feat_fd *ff,
        "/sys/devices/system/cpu/cpu%d/topology/thread_siblings_list"
 
 struct cpu_topo {
-       u32 cpu_nr;
        u32 core_sib;
        u32 thread_sib;
        char **core_siblings;
@@ -679,7 +678,6 @@ static struct cpu_topo *build_cpu_topology(void)
                goto out_free;
 
        tp = addr;
-       tp->cpu_nr = nr;
        addr += sizeof(*tp);
        tp->core_siblings = addr;
        addr += sz;