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:
5bb1b16
)
mm, page_alloc: simplify last cpupid reset
author
Mel Gorman
<
[email protected]
>
Fri, 20 May 2016 00:13:53 +0000
(17:13 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 20 May 2016 02:12:14 +0000
(19:12 -0700)
The current reset unnecessarily clears flags and makes pointless
calculations.
Signed-off-by: Mel Gorman <
[email protected]
>
Acked-by: Vlastimil Babka <
[email protected]
>
Cc: Jesper Dangaard Brouer <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/mm.h
patch
|
blob
|
history
diff --git
a/include/linux/mm.h
b/include/linux/mm.h
index 9c2852cabf01c0bf835b637708f9b200b2cf6dfe..2b97be1147ecf640dcfa9f7d1707d17a3a1738ef 100644
(file)
--- a/
include/linux/mm.h
+++ b/
include/linux/mm.h
@@
-850,10
+850,7
@@
extern int page_cpupid_xchg_last(struct page *page, int cpupid);
static inline void page_cpupid_reset_last(struct page *page)
{
- int cpupid = (1 << LAST_CPUPID_SHIFT) - 1;
-
- page->flags &= ~(LAST_CPUPID_MASK << LAST_CPUPID_PGSHIFT);
- page->flags |= (cpupid & LAST_CPUPID_MASK) << LAST_CPUPID_PGSHIFT;
+ page->flags |= LAST_CPUPID_MASK << LAST_CPUPID_PGSHIFT;
}
#endif /* LAST_CPUPID_NOT_IN_PAGE_FLAGS */
#else /* !CONFIG_NUMA_BALANCING */