aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorVitaly Kuznetsov <[email protected]>2021-09-03 09:51:40 +0200
committerPaolo Bonzini <[email protected]>2021-09-30 04:27:04 -0400
commitbaff59ccdc657d290be51b95b38ebe5de40036b4 (patch)
tree377c18fe9ef9d8ceaa8aaa1293a48476c8adf353 /tools/perf/scripts
parent381cecc5d7b777ada7cdf12f5b0bf4caf43bf7aa (diff)
KVM: Pre-allocate cpumasks for kvm_make_all_cpus_request_except()
Allocating cpumask dynamically in zalloc_cpumask_var() is not ideal. Allocation is somewhat slow and can (in theory and when CPUMASK_OFFSTACK) fail. kvm_make_all_cpus_request_except() already disables preemption so we can use pre-allocated per-cpu cpumasks instead. Signed-off-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions