From patchwork Sun Sep 12 15:58:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 509497 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp3096610jai; Sun, 12 Sep 2021 09:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpfL3lzhv6ptqSb3SCcYCoNbRDlmxwHkwKVVdfclAET/RCQ57UrTVCA1oGN7qJiYyUDLxq X-Received: by 2002:a1c:4b09:: with SMTP id y9mr3567971wma.45.1631462608876; Sun, 12 Sep 2021 09:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631462608; cv=none; d=google.com; s=arc-20160816; b=Y/vkNSXPHXsLRkhcR1jtIlHLJKZenLiX8SpzE95rt09FrnDnfdhhiTvJySBQJd5EXc xCA5TY7dep7PJF0FzzJt00zddErnszrPKWwxiUWUeOOF9uzOhar7m2ogy4EWIRbHOnPv PQydccCT7SbyIjNtcT42MJF4BVggl8vf60zfL5UiustheGgOQLbNIrlqit5gP8K9bC32 5dsiFjwuTtdM3ZMi4m886Z4eJMY1QR9q5DBXGkI44upeJaIGh93vn1OXIbz7HXoLSJgo REOY7bg62ES8QZUyfH+4hRWQhFm0ymmNQNibKQd1MINfIbm2BIkU+7Q3VaJgMwzxsZMO 10hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=4qLOJ7aAC4BizQd/i02xX0hEQglVCR9hQiC8rfWR7Us=; b=rcXIF6dBiOLretRCrlmYmEKtr4NXoi1KQVFRZ8kXudJX7/oRdXLVhgo+FmOgjY7WNv xxJqwR5HnWVjNfnHLwyb0hO0QF2dvLOeumLaTrAemy7A4fEzq0durpHn3ZrmIHm1iz+B 310RgOrvjcdMhTUf2KFM4thKhzlGlUhCHbHIh7ZfYhjj9wPPhx8jc4zFuS3DY7aYTp71 lmzx9uZJhEPyws0unPVpriziIREysg+CvQKkRzxPY7hHjhmhTSYKyD4wxApdg18Dq4xP 70ZazJjbmqN5+Le1sSAPbGwRd41QjpUJkKkzoubaRTqpaMw9etKnTuH3aH3x3sSUAkQX CEvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J7B4eDwf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h6si1407057wml.83.2021.09.12.09.03.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Sep 2021 09:03:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J7B4eDwf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPRx1-0007zp-VC for patch@linaro.org; Sun, 12 Sep 2021 12:03:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPRs1-0002MR-Kx for qemu-devel@nongnu.org; Sun, 12 Sep 2021 11:58:17 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:42931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPRrz-0003vQ-4q for qemu-devel@nongnu.org; Sun, 12 Sep 2021 11:58:17 -0400 Received: by mail-pl1-x635.google.com with SMTP id n4so4249549plh.9 for ; Sun, 12 Sep 2021 08:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4qLOJ7aAC4BizQd/i02xX0hEQglVCR9hQiC8rfWR7Us=; b=J7B4eDwfWuTdlCqBUcS077j1KftDXaNKG2WBXRsA6Sgc/ikWItxTG5F00+4lOjYM48 q0DU1ytuRlWDrnryc25ccjcJzVoSAbozidI5MZj981xAdbAfIkgPClF7WQvEQCo3BJs/ bje0Wdu512RVsx6j33IMsK0VH1VzVaPZ5sBQnC5IJ98QiRimcCUqs/tCxZEceMlLdXM4 lg0GoIB4aB7UbPgqwtbJCMrUNH+Nn6FIygpIxOcS5sUfOW0Uk5pP4jXU1xMQFpESgpXL HWIQMjySe0npcVgDWn3aIvhDmiCdujqFoHMPqcKvQIFKXCLLwlkca/xrgbGjYAlgxEPZ G+FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4qLOJ7aAC4BizQd/i02xX0hEQglVCR9hQiC8rfWR7Us=; b=012UX7vGYWYuwUTQbPmUPyERSfCa4r/yFINXC0hnT98IJAWU2AAAnOx7cBN7bkGMZW jKUNJ7N3lbAPoenz7YWJzjan1sNYvegtNaNpufANGlPJM4vu+uK++3s9bstv4Kh/BeW+ AASXs4g0tMaAWArx7S6EOsLSwpbs4OLkZNNX3sCOC6dgnh1CCmp4oaj5V7UPBN6Axreg kC2qFU3nyZB3NWocDquSUFH0uMFy2jQH+3l2avZxoFPvpae+EwK6Okq4li2yGoMHpW/5 U/2NdjS3oTJJmUsFG6C8Zrlx3+2OUviGYMMuoSnviPCvMgNs96sPnA07Ndf30mYJOp3i Mp1g== X-Gm-Message-State: AOAM5326DID52jG1Z/3zKks94NzFMFpuzBbcqrBqAVWTlbXxMJTq8Dme mkj71pvdo5ZP85kiZuEU0KSMX4ObrIH2Lg== X-Received: by 2002:a17:90b:4904:: with SMTP id kr4mr8417715pjb.50.1631462293808; Sun, 12 Sep 2021 08:58:13 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id v13sm4439415pfm.16.2021.09.12.08.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 08:58:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 4/9] accel/tcg: remove redundant TCG_KICK_PERIOD define Date: Sun, 12 Sep 2021 08:58:04 -0700 Message-Id: <20210912155809.196236-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210912155809.196236-1-richard.henderson@linaro.org> References: <20210912155809.196236-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Luc Michel , =?utf-8?q?Ph?= =?utf-8?q?ilippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Luc Michel The TCG_KICK_PERIOD macro is already defined in tcg-accel-ops-rr.h. Remove it from tcg-accel-ops-rr.c. Signed-off-by: Luc Michel Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210811141229.12470-1-lmichel@kalray.eu> Signed-off-by: Richard Henderson --- accel/tcg/tcg-accel-ops-rr.c | 2 -- 1 file changed, 2 deletions(-) -- 2.25.1 diff --git a/accel/tcg/tcg-accel-ops-rr.c b/accel/tcg/tcg-accel-ops-rr.c index c02c061ecb..a5fd26190e 100644 --- a/accel/tcg/tcg-accel-ops-rr.c +++ b/accel/tcg/tcg-accel-ops-rr.c @@ -60,8 +60,6 @@ void rr_kick_vcpu_thread(CPUState *unused) static QEMUTimer *rr_kick_vcpu_timer; static CPUState *rr_current_cpu; -#define TCG_KICK_PERIOD (NANOSECONDS_PER_SECOND / 10) - static inline int64_t rr_next_kick_time(void) { return qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + TCG_KICK_PERIOD;