diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-06-15 02:58:26 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-23 20:04:24 -0400 |
commit | 79f5599772ac2f138d7a75b8f3f06a93f09c75f7 (patch) | |
tree | 092c9f6e3f7c49d8f5bb9f3d39752ae7cfb9415a /virt/kvm | |
parent | a724eada8c2a7b62463b73ccf73fd0bb6e928aeb (diff) |
cpumask: use zalloc_cpumask_var() where possible
Remove open-coded zalloc_cpumask_var() and zalloc_cpumask_var_node().
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 897bff3b7df9..034a798b0431 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -738,8 +738,7 @@ static bool make_all_cpus_request(struct kvm *kvm, unsigned int req) | |||
738 | bool called = true; | 738 | bool called = true; |
739 | struct kvm_vcpu *vcpu; | 739 | struct kvm_vcpu *vcpu; |
740 | 740 | ||
741 | if (alloc_cpumask_var(&cpus, GFP_ATOMIC)) | 741 | zalloc_cpumask_var(&cpus, GFP_ATOMIC); |
742 | cpumask_clear(cpus); | ||
743 | 742 | ||
744 | spin_lock(&kvm->requests_lock); | 743 | spin_lock(&kvm->requests_lock); |
745 | me = smp_processor_id(); | 744 | me = smp_processor_id(); |