Message ID | 20181213050453.9677-6-cota@braap.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 61793112E for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 13 Dec 2018 05:20:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DE492A44A for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 13 Dec 2018 05:20:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C17F2A731; Thu, 13 Dec 2018 05:20:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CF9972A44A for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 13 Dec 2018 05:20:43 +0000 (UTC) Received: from localhost ([::1]:50497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1gXJQR-0002Uk-0H for patchwork-qemu-devel@patchwork.kernel.org; Thu, 13 Dec 2018 00:20:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cota@braap.org>) id 1gXJCN-0007PD-97 for qemu-devel@nongnu.org; Thu, 13 Dec 2018 00:06:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cota@braap.org>) id 1gXJCE-000159-Ht for qemu-devel@nongnu.org; Thu, 13 Dec 2018 00:06:06 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39875) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <cota@braap.org>) id 1gXJC7-0000qo-GT for qemu-devel@nongnu.org; Thu, 13 Dec 2018 00:05:56 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 59AB522162; Thu, 13 Dec 2018 00:05:38 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 13 Dec 2018 00:05:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references; s= mesmtp; bh=afBTUFTZEp6b42wZbwmKGGpDVchdomYolycmtpS9RXI=; b=QwcbU MTuoNIRKY0IYeex5t0BraJ5l3RaogH90t05eKQEzPg+Xizp3pNFSqXiqBteIEODf bWEosRv8sO4gK80/39eGHtn2I/f7i9hkobPRhJXADfiChWOmWq1ciZ7SAo96hYC9 v7Fw2LTCJK+/GWJukIIllSPaJgskJ9DU6y5EBg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=afBTUFTZEp6b42wZbwmKGGpDVchdo mYolycmtpS9RXI=; b=YISum/iWxmqto8UvXmf39uMaH3et/fvGiyhroXJ2/McZw sOwZ5exmA2rxcpWGTTv/oAEcn8SKDAO/ediUasEk0l8KYYMgHzMxNnNftwmX3XkU QCk03IRKFJkCIT/RtO6LhJygSipH16XIBcDuDsimvG/8YMN25P7qwolXGFkBH4WS ma0xD6l3gy2PISzh1KX6a2n71qTMrW1lryku8xnafaxv8hO7dOhvXsEfLAz7nXN5 uvWmRdcR2vJQmrYFf3gIE2TPvzVNKfUcOeEKleXtcxvY674lgftQ5OlF4W5nCRY4 nh1ukPxKnLRgHc+/yl++q4WhYe8hkB8u4+QOoFXsg== X-ME-Sender: <xms:ougRXD5Z9XLKxFrpX1BjIu9HcbSqomFoQThILbVg_yzmuZzK3YTHEA> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudehuddgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkof gjfhestddtredtredttdenucfhrhhomhepfdfgmhhilhhiohcuifdrucevohhtrgdfuceo tghothgrsegsrhgrrghprdhorhhgqeenucfkphepuddvkedrheelrddvtddrvdduieenuc frrghrrghmpehmrghilhhfrhhomheptghothgrsegsrhgrrghprdhorhhgnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: <xmx:ougRXAo3l1LbSOpACUbBVnsN2prpNhSSwMhTH1VbgrXIBS5NPoj2bg> <xmx:ougRXNjmbtlKXKtyB4MfU27hdplyuoXIIFmkUArK7UpacF4MrUxnUQ> <xmx:ougRXCLbT2EC65oA3WesYOBBQZykL7gHjA7uLZBxKbwKE5l5gsO12g> <xmx:ougRXEh6RqhUnXcSc8EYOC5-5HJ-LmeQ4uj8Mo4hksEIHA7hEg24CA> Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id D277210086; Thu, 13 Dec 2018 00:05:37 -0500 (EST) From: "Emilio G. Cota" <cota@braap.org> To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2018 00:03:45 -0500 Message-Id: <20181213050453.9677-6-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181213050453.9677-1-cota@braap.org> References: <20181213050453.9677-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH v5 05/73] cpu: move run_on_cpu to cpus-common X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
per-CPU locks
|
expand
|
diff --git a/include/qom/cpu.h b/include/qom/cpu.h index aff42c41dd..f0fc0bccd9 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -760,16 +760,6 @@ void qemu_cpu_kick(CPUState *cpu); */ bool cpu_is_stopped(CPUState *cpu); -/** - * do_run_on_cpu: - * @cpu: The vCPU to run on. - * @func: The function to be executed. - * @data: Data to pass to the function. - * - * Used internally in the implementation of run_on_cpu. - */ -void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data); - /** * run_on_cpu: * @cpu: The vCPU to run on. diff --git a/cpus-common.c b/cpus-common.c index 71469c85ce..3fccee5585 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -127,7 +127,7 @@ static void queue_work_on_cpu(CPUState *cpu, struct qemu_work_item *wi) cpu_mutex_unlock(cpu); } -void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data) +void run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data) { struct qemu_work_item wi; bool has_bql = qemu_mutex_iothread_locked(); diff --git a/cpus.c b/cpus.c index 7ae859f35c..cc683895d8 100644 --- a/cpus.c +++ b/cpus.c @@ -1234,11 +1234,6 @@ void qemu_init_cpu_loop(void) qemu_thread_get_self(&io_thread); } -void run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data) -{ - do_run_on_cpu(cpu, func, data); -} - static void qemu_kvm_destroy_vcpu(CPUState *cpu) { if (kvm_destroy_vcpu(cpu) < 0) {