diff options
author | Jiri Olsa <jolsa@kernel.org> | 2017-10-11 11:01:24 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-10-23 10:20:54 -0400 |
commit | 696e2457e9fd285034cd30cd8c93ece5e6cfe35a (patch) | |
tree | 5b5b512cb3ac15953d10b7ab719054f228311675 /tools/perf/arch/s390/annotate/instructions.c | |
parent | 98ad761bd3989a71be2b100002be923466617394 (diff) |
perf annotate: Remove arch::cpuid_parse callback
There's no need for extra cpuid_parse arch callback, it can be handled
directly in init callback.
Adding the init function to x86 to cover the cpuid initialization.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20171011150158.11895-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/s390/annotate/instructions.c')
-rw-r--r-- | tools/perf/arch/s390/annotate/instructions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/arch/s390/annotate/instructions.c b/tools/perf/arch/s390/annotate/instructions.c index 745b4b1b8b21..b8676ccbed76 100644 --- a/tools/perf/arch/s390/annotate/instructions.c +++ b/tools/perf/arch/s390/annotate/instructions.c | |||
@@ -1,3 +1,5 @@ | |||
1 | #include <linux/compiler.h> | ||
2 | |||
1 | static struct ins_ops *s390__associate_ins_ops(struct arch *arch, const char *name) | 3 | static struct ins_ops *s390__associate_ins_ops(struct arch *arch, const char *name) |
2 | { | 4 | { |
3 | struct ins_ops *ops = NULL; | 5 | struct ins_ops *ops = NULL; |
@@ -19,7 +21,7 @@ static struct ins_ops *s390__associate_ins_ops(struct arch *arch, const char *na | |||
19 | return ops; | 21 | return ops; |
20 | } | 22 | } |
21 | 23 | ||
22 | static int s390__annotate_init(struct arch *arch) | 24 | static int s390__annotate_init(struct arch *arch, char *cpuid __maybe_unused) |
23 | { | 25 | { |
24 | if (!arch->initialized) { | 26 | if (!arch->initialized) { |
25 | arch->initialized = true; | 27 | arch->initialized = true; |