]> git.baikalelectronics.ru Git - kernel.git/commit
perf affinity: Allow passing a NULL arg to affinity__cleanup()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Jan 2022 16:09:28 +0000 (13:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Jan 2022 12:24:58 +0000 (09:24 -0300)
commit88369041f98c8ccdfcae4ed6e900e07237f5614d
tree2ff7c9b38b3b6b7325767c3ce751503401665efc
parent10e8634279b9957545dbf797d8c44b0a21bed2fd
perf affinity: Allow passing a NULL arg to affinity__cleanup()

Just like with free(), NULL is checked to avoid having all callers do
it.

Its convenient for when not using affinity setup/cleanup for dummy CPU
maps, i.e. CPU maps for pid targets.

Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20220117160931.1191712-2-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/affinity.c