diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-01-06 13:49:55 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-01-07 02:11:16 +0300 |
commit | 15d2b9956b41ffb5961b897bf61cdc09f722dfbf (patch) | |
tree | f8f151bf4f42597a632fb44bcc0605dd139caa4d /Kbuild | |
parent | aef90263561a87ae6d9c6a0f4071d825ce636eef (diff) | |
download | linux-15d2b9956b41ffb5961b897bf61cdc09f722dfbf.tar.xz |
perf cpumap: Fix cpu conversion in cpu_map__from_entries
We can't convert u16 cpu_map_entries::cpu[x] value directly to int,
because it could hold -1, which would be converted as 65535.
Adding special treatment for -1, which is not real cpu number, to be
converted to (int -1).
Reported-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1452077397-31958-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions