diff options
author | Sean Christopherson <[email protected]> | 2022-11-30 23:09:10 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-12-29 15:41:19 -0500 |
commit | ae19b15d917887a450787de6f5c8f26a16d3fba9 (patch) | |
tree | 5b1acc54ebc5274f6bbd75452d316f0eca77409d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 45b66dc139e3cfb972cd7aeaf04a7cbf9e98651f (diff) |
KVM: PPC: Move processor compatibility check to module init
Move KVM PPC's compatibility checks to their respective module_init()
hooks, there's no need to wait until KVM's common compat check, nor is
there a need to perform the check on every CPU (provided by common KVM's
hook), as the compatibility checks operate on global data.
arch/powerpc/include/asm/cputable.h: extern struct cpu_spec *cur_cpu_spec;
arch/powerpc/kvm/book3s.c: return 0
arch/powerpc/kvm/e500.c: strcmp(cur_cpu_spec->cpu_name, "e500v2")
arch/powerpc/kvm/e500mc.c: strcmp(cur_cpu_spec->cpu_name, "e500mc")
strcmp(cur_cpu_spec->cpu_name, "e5500")
strcmp(cur_cpu_spec->cpu_name, "e6500")
Cc: Fabiano Rosas <[email protected]>
Cc: Michael Ellerman <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Acked-by: Michael Ellerman <[email protected]> (powerpc)
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions