From: Dongsheng Yang Date: Wed, 4 Dec 2013 22:56:40 +0000 (-0500) Subject: perf target: Move the checking of which map function to call into function. X-Git-Tag: v3.14-rc1~171^2~17^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c105fbc94a67ea5943d309d9a78ca669e0ddc61;p=pandora-kernel.git perf target: Move the checking of which map function to call into function. Check for cpu_map__dummy_new() or cpu_map__new() to be called in perf_evlist__create_maps() is more complicated. This patch moves the checking work into target.h, combining two conditions and making perf_evlist__create_maps() more readable. Signed-off-by: Dongsheng Yang Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/b8c41f1fd2c4f0df71eb7b19aea74fb64d46cdda.1386197481.git.yangds.fnst@cn.fujitsu.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed