git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reduce the size of ppage by 8 bytes using signly linked list
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
mm
/
pmm.h
diff --git
a/lunaix-os/includes/lunaix/mm/pmm.h
b/lunaix-os/includes/lunaix/mm/pmm.h
index b5dcb971c796889d5a325d1393bcc4881853dfea..c0e08b28ab16467adddb198e4f521be833537b04 100644
(file)
--- a/
lunaix-os/includes/lunaix/mm/pmm.h
+++ b/
lunaix-os/includes/lunaix/mm/pmm.h
@@
-36,7
+36,7
@@
struct pmem_pool
#elif defined(CONFIG_PMALLOC_METHOD_SIMPLE)
#elif defined(CONFIG_PMALLOC_METHOD_SIMPLE)
- struct l
list_header
idle_order[MAX_PAGE_ORDERS];
+ struct l
ist_head
idle_order[MAX_PAGE_ORDERS];
int count[MAX_PAGE_ORDERS];
#endif
int count[MAX_PAGE_ORDERS];
#endif
@@
-87,7
+87,7
@@
ppage_addr(struct ppage* page) {
static inline unsigned int
count_order(size_t page_count) {
static inline unsigned int
count_order(size_t page_count) {
- unsigned int po =
ILOG
2(page_count);
+ unsigned int po =
ilog
2(page_count);
assert(!(page_count % (1 << po)));
return po;
}
assert(!(page_count % (1 << po)));
return po;
}