From patchwork Fri May 27 12:19:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 823602 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4RCJbGu003785 for ; Fri, 27 May 2011 12:19:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753879Ab1E0MTb (ORCPT ); Fri, 27 May 2011 08:19:31 -0400 Received: from thoth.sbs.de ([192.35.17.2]:17274 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964Ab1E0MT3 (ORCPT ); Fri, 27 May 2011 08:19:29 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.13.6/8.13.6) with ESMTP id p4RCJPsC012072; Fri, 27 May 2011 14:19:25 +0200 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id p4RCJOKm005557; Fri, 27 May 2011 14:19:25 +0200 From: Jan Kiszka To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org Subject: [PATCH 12/20] qemu-kvm: Remove obsolete current_env Date: Fri, 27 May 2011 14:19:16 +0200 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: References: In-Reply-To: References: Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 27 May 2011 12:19:37 +0000 (UTC) Signed-off-by: Jan Kiszka --- cpus.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/cpus.c b/cpus.c index c7a5dec..9b3f218 100644 --- a/cpus.c +++ b/cpus.c @@ -1199,8 +1199,6 @@ void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg) #include -__thread CPUState *current_env; - static CPUState *kvm_debug_cpu_requested; unsigned long kvm_get_thread_id(void) @@ -1379,7 +1377,6 @@ static void *ap_main_loop(void *_env) { CPUState *env = _env; - current_env = env; env->thread_id = kvm_get_thread_id(); env->halt_cond = qemu_mallocz(sizeof(QemuCond)); @@ -1393,7 +1390,7 @@ static void *ap_main_loop(void *_env) setup_kernel_sigmask(env); /* signal VCPU creation */ - current_env->created = 1; + env->created = 1; qemu_cond_signal(&qemu_cpu_cond); /* and wait for machine initialization */