summaryrefslogtreecommitdiff
path: root/drivers/remoteproc/remoteproc_sysfs.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2020-12-02 19:12:44 +0300
committerWei Liu <wei.liu@kernel.org>2020-12-13 18:06:05 +0300
commit7f3f227b41e81f8669e906c49a240c1678c65cfe (patch)
tree1e51c3a036622f52542214a91d7fbd997ce6959f /drivers/remoteproc/remoteproc_sysfs.c
parent5c641fee4ccfd27520b7863bf4a66491faea6d2a (diff)
downloadlinux-7f3f227b41e81f8669e906c49a240c1678c65cfe.tar.xz
hv_balloon: simplify math in alloc_balloon_pages()
'alloc_unit' in alloc_balloon_pages() is either '512' for 2M allocations or '1' for 4k allocations. So 1 << get_order(alloc_unit << PAGE_SHIFT) equals to 'alloc_unit' and the for loop basically sets all them offline. Simplify the math to improve the readability. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20201202161245.2406143-2-vkuznets@redhat.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/remoteproc/remoteproc_sysfs.c')
0 files changed, 0 insertions, 0 deletions