Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kK1cQ-0000vr-RN for mharc-qemu-trivial@gnu.org; Sun, 20 Sep 2020 11:51:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK1c2-0000oO-Rh; Sun, 20 Sep 2020 11:50:56 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:38529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kK1bz-0004Zg-Fa; Sun, 20 Sep 2020 11:50:48 -0400 Received: by mail-wm1-x341.google.com with SMTP id l9so10138115wme.3; Sun, 20 Sep 2020 08:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KFR5/we5s3WUe2uUz6ZQg87dvvCvdsvvEg6rFlfDXY0=; b=oAhO50iot3jODr1jJW9HHeW1Y7yGoKeG/t5sCjoocdQq5FFfEQYANxovRon8RkSeYz /5hx6oIRVEIwZIT5+AfV9PknS47dkGUMfBsTPZsREYmaQGMHrwODxEfPavVg4RFoFwg7 5kehnqINwJS3iV0aKULm9KgHPAp1fPMNiSAL1HDqYLhYuQJgg+wRIZWd8jP7QX4VPCHi PaOtFNqmtmwQ0cw9Y9TsRf9WDFx5DQZLC2rBZxlm9xJxlR9tNqUwe2PpPy7uyvzE20mp mtwQ89RVaHUAh4ipX6ER/KM31HD/DVcxB4PfmiRRUUil0y4fEWPV+KD/+jeD/pZNWZjo r2eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=KFR5/we5s3WUe2uUz6ZQg87dvvCvdsvvEg6rFlfDXY0=; b=PLH/eENYEFTcZS2UCM7MVT6PEQJGejuM+rrPGsdRh2oWiEx0lylZ+pkyN0/dnUR8bO wWgOd9Iu9Og2Qh/OSaauFb2D/fpC8ZGvl3t4iViCROMVZCoaR4aQgVNP9WmIBJbugnLK gGtinVPfwICsTAfZuIxo+aNC+6gY14FY9S2ljVJf1TNYsMeZCekYN7ZYY6ylGjNJmheq I+OKAnfhYMYbo2YA1aXzRVgGpx74Gp9c9Qmzz0i4LYzCUxOPXbZHRBA/bcD2QRQkHKoV BBTXI6iNvXg2Eot33pXiozfwMSDKLKF0+PMUxPJ5SljsoQ5dshTcMsxwJu2q6bGbWb4a rgOQ== X-Gm-Message-State: AOAM531JTMAwR3LXVjd8z8Qd+VZr4FvcdEdpyvr8vNEJqAQ/b74H2shm mTvOk5H0PfUDlh17polHGl9Nu6XyIvA= X-Google-Smtp-Source: ABdhPJyPQqunJZQJTPmDVBI8c/Bts92c5AzzXWGJT9NPtW7TrM71Ak5bwt37Q0Mw/QIctosobwxwGQ== X-Received: by 2002:a1c:e0d4:: with SMTP id x203mr27641965wmg.91.1600617043966; Sun, 20 Sep 2020 08:50:43 -0700 (PDT) Received: from localhost.localdomain (65.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.65]) by smtp.gmail.com with ESMTPSA id h17sm16676179wro.27.2020.09.20.08.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Sep 2020 08:50:43 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] timer: Fix timer_mod_anticipate() documentation Date: Sun, 20 Sep 2020 17:50:42 +0200 Message-Id: <20200920155042.400737-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x341.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2020 15:51:03 -0000 timer_mod_anticipate() will be scaled to the timer unit, which is not always nanosecond. Fix the documentation. Fixes: add40e9777d ("timer: add timer_mod_anticipate*") Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/timer.h b/include/qemu/timer.h index 6a8b48b5a9d..1dc880e94e7 100644 --- a/include/qemu/timer.h +++ b/include/qemu/timer.h @@ -679,7 +679,7 @@ void timer_mod(QEMUTimer *ts, int64_t expire_timer); /** * timer_mod_anticipate: * @ts: the timer - * @expire_time: the expiry time in nanoseconds + * @expire_time: the expire time in the units associated with the timer * * Modify a timer to expire at @expire_time or the current time, whichever * comes earlier, taking into account the scale associated with the timer. -- 2.26.2