]> git.proxmox.com Git - mirror_qemu.git/commit
arch_init: Count the total number of pages by using helper function
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Mon, 9 Mar 2015 09:27:38 +0000 (17:27 +0800)
committerJuan Quintela <quintela@redhat.com>
Tue, 17 Mar 2015 14:20:37 +0000 (15:20 +0100)
commitf54a235f9b15ae59d70b40630417d8aaa88bc4ec
treef6a67be405aea6ae3c1b4f2458ca61d121e7c3f6
parent4debb5f553d816bf1f2d86bb61e833e79010cb3d
arch_init: Count the total number of pages by using helper function

There is already a helper function ram_bytes_total(), we can use it to
help counting the total number of pages used by ram blocks.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
arch_init.c