Skip to content

Commit

Permalink
perf tools: Add missing cpu_map__delete()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 22, 2011
1 parent 0a27d7f commit 915fce2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tools/perf/util/cpumap.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,8 @@ struct cpu_map *cpu_map__dummy_new(void)

return cpus;
}

void cpu_map__delete(struct cpu_map *map)
{
free(map);
}
2 changes: 1 addition & 1 deletion tools/perf/util/cpumap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 915fce2

Please sign in to comment.