OSDN Git Service

numa: move default mapping init to machine
authorIgor Mammedov <imammedo@redhat.com>
Tue, 30 May 2017 16:23:57 +0000 (18:23 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Jun 2017 17:59:08 +0000 (14:59 -0300)
commit60bed6a30aa8341cbc8fae4bdc53b9eb99d80586
tree9c68893c9b97f73a99d58e92a5432f9587f4f75d
parenta0ceb640d083ab583d115fbd2ded14c089044ae8
numa: move default mapping init to machine

there is no need use cpu_index_to_instance_props() for setting
default cpu -> node mapping. Generic machine code can do it
without cpu_index by just enabling already preset defaults
in possible_cpus.

PS:
as bonus it makes one less user of cpu_index_to_instance_props()

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1496161442-96665-3-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/machine.c
numa.c