Received: from eggs.gnu.org ([2001:4830:134:3::10]:58628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKWxY-0003mg-SR for qemu-devel@nongnu.org; Sun, 08 Feb 2015 13:51:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKWxS-0005Z1-Bp for qemu-devel@nongnu.org; Sun, 08 Feb 2015 13:51:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKWxS-0005Yw-5H for qemu-devel@nongnu.org; Sun, 08 Feb 2015 13:51:50 -0500 From: Eduardo Habkost Date: Sun, 8 Feb 2015 16:51:22 -0200 Message-Id: <1423421482-11619-8-git-send-email-ehabkost@redhat.com> In-Reply-To: <1423421482-11619-1-git-send-email-ehabkost@redhat.com> References: <1423421482-11619-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 7/7] numa: Rename set_numa_modes() to numa_post_machine_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hu Tao , Paolo Bonzini , "Michael S. Tsirkin" , Igor Mammedov This function does some initialization that needs to be done after machine init. The function may be eventually removed if we move the CPUState.numa_node initialization to the CPU init code, but while the function exists, lets give it a name that makes sense. Signed-off-by: Eduardo Habkost --- include/sysemu/numa.h | 2 +- numa.c | 2 +- vl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h index 453b49a..5633b85 100644 --- a/include/sysemu/numa.h +++ b/include/sysemu/numa.h @@ -17,7 +17,7 @@ typedef struct node_info { } NodeInfo; extern NodeInfo numa_info[MAX_NODES]; void parse_numa_opts(void); -void set_numa_modes(void); +void numa_post_machine_init(void); void query_numa_node_mem(uint64_t node_mem[]); extern QemuOptsList qemu_numa_opts; diff --git a/numa.c b/numa.c index d5b95e1..0d15375 100644 --- a/numa.c +++ b/numa.c @@ -246,7 +246,7 @@ void parse_numa_opts(void) } } -void set_numa_modes(void) +void numa_post_machine_init(void) { CPUState *cpu; int i; diff --git a/vl.c b/vl.c index 7243216..f8e516f 100644 --- a/vl.c +++ b/vl.c @@ -4213,7 +4213,7 @@ int main(int argc, char **argv, char **envp) cpu_synchronize_all_post_init(); - set_numa_modes(); + numa_post_machine_init(); /* init USB devices */ if (usb_enabled()) { -- 2.1.0