pc: Register created initial and hotpluged CPUs in one place pc_cpu_plug()
commita44a49dbf2eb8b9b430711b152663678c15f689c
authorIgor Mammedov <imammedo@redhat.com>
Thu, 14 Jul 2016 16:54:32 +0000 (14 18:54 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 20 Jul 2016 15:02:18 +0000 (20 12:02 -0300)
tree79f651b049657e3044edd7a48cd28dca9ae19006
parentba157b696c4a82234ef1b43e98a7c74455538263
pc: Register created initial and hotpluged CPUs in one place pc_cpu_plug()

Consolidate possible_cpus array management in pc_cpu_plug() for
smp_cpus, coldplugged with -device and hotplugged with
device_add.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c