perf tools: Add missing cpu_map__delete()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Jan 2011 18:19:12 +0000 (16:19 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 22 Jan 2011 21:56:30 +0000 (19:56 -0200)
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.c
tools/perf/util/cpumap.h

index 3ccaa10433830503325bb7625527839f4586b93e..6893eec693abad5ad8e5af88f1c8ee107c63e713 100644 (file)
@@ -177,3 +177,8 @@ struct cpu_map *cpu_map__dummy_new(void)
 
        return cpus;
 }
+
+void cpu_map__delete(struct cpu_map *map)
+{
+       free(map);
+}
index f7a4f42f6307fb522299ea48d1126e6d08ffda71..072c0a374794eafcdbfd628ae80c9fe1b0e88240 100644 (file)
@@ -8,6 +8,6 @@ struct cpu_map {
 
 struct cpu_map *cpu_map__new(const char *cpu_list);
 struct cpu_map *cpu_map__dummy_new(void);
-void *cpu_map__delete(struct cpu_map *map);
+void cpu_map__delete(struct cpu_map *map);
 
 #endif /* __PERF_CPUMAP_H */