From patchwork Mon Sep 21 08:20:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 48999 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8L8L0hg024132 for ; Mon, 21 Sep 2009 08:21:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754929AbZIUIU0 (ORCPT ); Mon, 21 Sep 2009 04:20:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754994AbZIUIU0 (ORCPT ); Mon, 21 Sep 2009 04:20:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3658 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754929AbZIUIUZ (ORCPT ); Mon, 21 Sep 2009 04:20:25 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8L8KTfB024531 for ; Mon, 21 Sep 2009 04:20:29 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8L8K9db003933; Mon, 21 Sep 2009 04:20:28 -0400 From: Juan Quintela To: kvm@vger.kernel.org Subject: [PATCH 1/2] acpi: enable/disable_processor() are used only for TARGET_I386 Date: Mon, 21 Sep 2009 10:20:00 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Juan Quintela --- hw/acpi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index 0f80525..ff7bc4a 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -753,6 +753,7 @@ void piix4_acpi_system_hot_add_init(const char *cpu_model) qemu_system_device_hot_add_register(piix4_device_hot_add); } +#if defined(TARGET_I386) static void enable_processor(struct gpe_regs *g, int cpu) { g->sts |= 4; @@ -765,7 +766,6 @@ static void disable_processor(struct gpe_regs *g, int cpu) g->cpus_sts[cpu/8] &= ~(1 << (cpu%8)); } -#if defined(TARGET_I386) || defined(TARGET_X86_64) void qemu_system_cpu_hot_add(int cpu, int state) { CPUState *env;