diff options
author | Sean Christopherson <[email protected]> | 2021-08-27 11:25:10 +0200 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-09-22 10:33:15 -0400 |
commit | 0bbc2ca8515f9cdf11df84ccb63dc7c44bc3d8f4 (patch) | |
tree | f28f7a59b2f13d18d3c9038dd82b6ad50b66e761 /tools/perf/util/trace-event-scripting.c | |
parent | 85b640450ddcfa09cf72771b69a9c3daf0ddc772 (diff) |
KVM: KVM: Use cpumask_available() to check for NULL cpumask when kicking vCPUs
Check for a NULL cpumask_var_t when kicking multiple vCPUs via
cpumask_available(), which performs a !NULL check if and only if cpumasks
are configured to be allocated off-stack. This is a meaningless
optimization, e.g. avoids a TEST+Jcc and TEST+CMOV on x86, but more
importantly helps document that the NULL check is necessary even though
all callers pass in a local variable.
No functional change intended.
Cc: Lai Jiangshan <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions