projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46acef0
)
mm/bootmem.c: cosmetic improvement of code readability
author
Adygzhy Ondar
<ondar07@gmail.com>
Wed, 22 Feb 2017 23:44:58 +0000
(15:44 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 23 Feb 2017 00:41:29 +0000
(16:41 -0800)
The obvious number of bits in a byte is replaced by BITS_PER_BYTE macro
in bootmap_bytes()
Link:
http://lkml.kernel.org/r/1483781600-5136-1-git-send-email-ondar07@gmail.com
Signed-off-by: Adygzhy Ondar <ondar07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/bootmem.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/bootmem.c
b/mm/bootmem.c
index e8a55a3c9febae80fab4627bc8f0846f4326c56a..9fedb27c6451418035fdf26300fbdf8d9c7fc6c9 100644
(file)
--- a/
mm/bootmem.c
+++ b/
mm/bootmem.c
@@
-53,7
+53,7
@@
early_param("bootmem_debug", bootmem_debug_setup);
static unsigned long __init bootmap_bytes(unsigned long pages)
{
- unsigned long bytes = DIV_ROUND_UP(pages,
8
);
+ unsigned long bytes = DIV_ROUND_UP(pages,
BITS_PER_BYTE
);
return ALIGN(bytes, sizeof(long));
}