projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f67280
)
x86/mm: Use PAGE_ALIGNED instead of IS_ALIGNED
author
Kefeng Wang
<
[email protected]
>
Tue, 12 Jan 2016 02:19:30 +0000
(10:19 +0800)
committer
Ingo Molnar
<
[email protected]
>
Tue, 12 Jan 2016 10:09:48 +0000
(11:09 +0100)
Use PAGE_ALIGEND macro in <linux/mm.h> to simplify code.
Signed-off-by: Kefeng Wang <
[email protected]
>
Cc: <
[email protected]
>
Cc: Alexander Kuleshov <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/mm/init_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/init_64.c
b/arch/x86/mm/init_64.c
index ec081fe0ce2c10246fec7126dd213aa6b4d75dbb..8829482d69ec2872adaeaeb9bd68539c1b6dda38 100644
(file)
--- a/
arch/x86/mm/init_64.c
+++ b/
arch/x86/mm/init_64.c
@@
-814,8
+814,7
@@
remove_pte_table(pte_t *pte_start, unsigned long addr, unsigned long end,
if (phys_addr < (phys_addr_t)0x40000000)
return;
- if (IS_ALIGNED(addr, PAGE_SIZE) &&
- IS_ALIGNED(next, PAGE_SIZE)) {
+ if (PAGE_ALIGNED(addr) && PAGE_ALIGNED(next)) {
/*
* Do not free direct mapping pages since they were
* freed when offlining, or simplely not in use.