diff options
author | Honggang Li <enjoymindful@gmail.com> | 2014-06-03 13:30:45 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2014-10-13 17:15:09 +0200 |
commit | 9e6a57d2cdee36a6d9c5d5cc3db85713dd416719 (patch) | |
tree | cf8fc0074fd53202b6eb552010326ecc58aa7671 /arch/um/include/shared | |
parent | 671312304ec73059a0128ff3ac7a5ced459098ae (diff) | |
download | op-kernel-dev-9e6a57d2cdee36a6d9c5d5cc3db85713dd416719.zip op-kernel-dev-9e6a57d2cdee36a6d9c5d5cc3db85713dd416719.tar.gz |
um: delete unnecessary bootmem struct page array
1) uml kernel bootmem managed through bootmem_data->node_bootmem_map,
not the struct page array, so the array is unnecessary.
2) the bootmem struct page array has been pointed by a *local* pointer,
struct page *map, in init_maps function. The array can be accessed only
in init_maps's scope. As a result, uml kernel wastes about 1% of total
memory.
Signed-off-by: Honggang Li <enjoymindful@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include/shared')
-rw-r--r-- | arch/um/include/shared/mem_user.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/shared/mem_user.h b/arch/um/include/shared/mem_user.h index 46384ac..cb84414 100644 --- a/arch/um/include/shared/mem_user.h +++ b/arch/um/include/shared/mem_user.h @@ -49,7 +49,7 @@ extern int iomem_size; extern int init_mem_user(void); extern void setup_memory(void *entry); extern unsigned long find_iomem(char *driver, unsigned long *len_out); -extern int init_maps(unsigned long physmem, unsigned long iomem, +extern void mem_total_pages(unsigned long physmem, unsigned long iomem, unsigned long highmem); extern unsigned long get_vm(unsigned long len); extern void setup_physmem(unsigned long start, unsigned long usable, |