tools: bpftool: move get_possible_cpus() to common code
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 4 May 2018 01:37:15 +0000 (18:37 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 4 May 2018 21:41:04 +0000 (23:41 +0200)
commite64d52569f6e847495091db40ab58d2d379748ef
tree5fb3e376bfe4933f00b4d07f5fda84df5d70a498
parentc642ea265445873901041fa0b892a45ea7c6ff33
tools: bpftool: move get_possible_cpus() to common code

Move the get_possible_cpus() function to shared code.  No functional
changes.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/common.c
tools/bpf/bpftool/main.h
tools/bpf/bpftool/map.c