util: Cleanup and rename os_mem_prealloc()
Let's * give the function a "qemu_*" style name * make sure the parameters in the implementation match the prototype * rename smp_cpus to max_threads, which makes the semantics of that parameter clearer ... and add a function documentation. Reviewed-by:Michal Privoznik <mprivozn@redhat.com> Message-Id: <20221014134720.168738-2-david@redhat.com> Signed-off-by:
David Hildenbrand <david@redhat.com>
Showing
- backends/hostmem.c 3 additions, 3 deletionsbackends/hostmem.c
- hw/virtio/virtio-mem.c 1 addition, 1 deletionhw/virtio/virtio-mem.c
- include/qemu/osdep.h 15 additions, 2 deletionsinclude/qemu/osdep.h
- softmmu/cpus.c 1 addition, 1 deletionsoftmmu/cpus.c
- util/oslib-posix.c 12 additions, 12 deletionsutil/oslib-posix.c
- util/oslib-win32.c 4 additions, 4 deletionsutil/oslib-win32.c
Loading
Please register or sign in to comment