]> git.baikalelectronics.ru Git - kernel.git/commit
PC, KVM, CMA: Fix regression caused by wrong get_order() use
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 14 Aug 2014 05:03:07 +0000 (15:03 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Aug 2014 13:11:57 +0000 (15:11 +0200)
commit245093a702c4ff34c047f358fd6937d4360c20d1
tree691332dbb4ce5b6180326d5097e9485a781a4753
parent2e1c1c54231b05d3d78b0e7fcc07b3bf1fc65026
PC, KVM, CMA: Fix regression caused by wrong get_order() use

076fd7f8342744201a8bccd677b9265246ecffd1 claims that there is no
functional change but this is not true as it calls get_order() (which
takes bytes) where it should have called order_base_2() and the kernel
stops on VM_BUG_ON().

This replaces get_order() with order_base_2() (round-up version of ilog2).

Suggested-by: Paul Mackerras <paulus@samba.org>
Cc: Alexander Graf <agraf@suse.de>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/book3s_hv_builtin.c