perf kvm: Refactoring of cpu_isa_config()
authorAlexander Yarygin <yarygin@linux.vnet.ibm.com>
Thu, 3 Jul 2014 13:59:51 +0000 (17:59 +0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Jul 2014 19:55:24 +0000 (16:55 -0300)
commit65c647a65c155e69bd5765d5e454982566ac1c62
tree0d4a0ca79c4c0965e10e767cbc01f7e9f0a0736e
parentdf74c13b6c53c97576652f7b2840764ad7d5f949
perf kvm: Refactoring of cpu_isa_config()

cpu_isa_config() does two different things: searching for cpuid and
initializing perf_kvm_stat struct with proper parameters.

Let's move initialization to a separate function cpu_isa_init(), which
is used to initialize all possible ISAs and can be used to init
arch-depended things.

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1404395992-17095-4-git-send-email-yarygin@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c