Don't register cpu reset handler for cpu with APIC.
authorGleb Natapov <gleb@redhat.com>
Thu, 18 Jun 2009 13:29:18 +0000 (16:29 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:15:29 +0000 (10:15 -0500)
commit63cf6dd1ab9d7f8d2c35006e93c5d6b2f4d22f6e
treeca36f5dfb291233b3a3b52e87d627b0d67d46123
parentb1c984bfb492d35fc4cf48716ff53dd3097714f4
Don't register cpu reset handler for cpu with APIC.

APIC reset handler already resets cpu, no need to reset it twice.
Also register cpu_reset handler directly to make it impossible to
add additional code to main_cpu_reset() by mistake.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc.c