Commit c32add82 authored by Laurent Dufour's avatar Laurent Dufour Committed by Pavel Emelyanov

ppc64: belong on sysconf to get current page size

Page size may change, so page size should be read through sysconf.
Suggested-by: 's avatarChristopher Covington <cov@codeaurora.org>
Signed-off-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 61984edd
......@@ -18,6 +18,6 @@
#endif
#define PAGE_PFN(addr) ((addr) / PAGE_SIZE)
#define page_size() PAGE_SIZE
#define page_size() sysconf(_SC_PAGESIZE)
#endif /* __CR_ASM_PAGE_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment