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 3ccaa10..6893eec 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 f7a4f42..072c0a3 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 */