diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-08 12:58:04 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 17:55:45 +0300 |
commit | 6ef7a1bc45f80fe0a263119d404688c596ea5031 (patch) | |
tree | 331e8f5ba73b53fa5997eb4dc376249d18897876 /include/linux/kvm.h | |
parent | 498468961ed6f62a306eb90c49125776c526fa40 (diff) | |
download | linux-6ef7a1bc45f80fe0a263119d404688c596ea5031.tar.xz |
KVM: use modern cpumask primitives, no cpumask_t on stack
We're getting rid on on-stack cpumasks for large NR_CPUS.
1) Use cpumask_var_t/alloc_cpumask_var.
2) smp_call_function_mask -> smp_call_function_many
3) cpus_clear, cpus_empty, cpu_set -> cpumask_clear, cpumask_empty,
cpumask_set_cpu.
This actually generates slightly smaller code than the old one with
CONFIG_CPUMASKS_OFFSTACK=n. (gcc knows that cpus cannot be NULL in
that case, where cpumask_var_t is cpumask_t[1]).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm.h')
0 files changed, 0 insertions, 0 deletions