From nobody Mon Jul 04 16:40:08 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C8D631894331; Mon, 4 Jul 2022 16:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LcBP446cJz4S73; Mon, 4 Jul 2022 16:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656952808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8NTvEJQAdFLXbw0ZnDXdEXjQguwforeCLRD7pxfxM5U=; b=vUJIur5491SuapJR0vdLw0XxCLrkb0dm79NjVzf+DPKnCQ+GxJNbK1wzvchc1hchCyJC4R 8XZ0c2p8T0EinRljcU9xj7MFEesvoHH472diOOgLTQwuLakf3LV4tnYblDwHL/iLD6hoD5 5ZrUQWZ8Gm35suJiAnMPvwswrE8FE2eHmJEDere7tql/fWfs1NCJq1Dm/8FSvLOoxHplbY h3MrbLouvRfZEz4uVULi06tuPUOBK0qYhhwobaOMSN4qfG6XMY+8nFw+uQJIdtm96uwE3d KFIshYMC8TbpJb65om0eCKJwe+qWj87Eh5QA7LCl18nG/ZDR3yyu6593f/Ne5Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3347814B23; Mon, 4 Jul 2022 16:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 264Ge8W2043954; Mon, 4 Jul 2022 16:40:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 264Ge8fR043951; Mon, 4 Jul 2022 16:40:08 GMT (envelope-from git) Date: Mon, 4 Jul 2022 16:40:08 GMT Message-Id: <202207041640.264Ge8fR043951@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: f64845598eb5 - stable/13 - riscv timer: provide a function for cpu_ticks List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f64845598eb5dd648e9a840e59cb1cc1896c5691 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656952808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8NTvEJQAdFLXbw0ZnDXdEXjQguwforeCLRD7pxfxM5U=; b=yitnT5E1y7+Nsf1z5KOQK5BVRC56j6pzOXwzptaQkxjyNGuoqwkPaeueVLZborZtEXXCnT X5GxseAmJS4nRlQbgA/NyImu6rOEgZL3ImeIcRclnyHRj9ms/5DZrD2EWRXrLoCuxyFnFg WC0iVjGzEEXXoPa0k+pGTmyeFfOu7silkF0qUvdnTzviuwTb3EcWJVgOxN4PYO1fGT3vTr r7X21xJ/MoTwFWo+XfMXHACBeqsY6tROOppNp9bk1ju+osUMKvy6AbReXDC82CGwKT7IUt 0fJpHPYYsAl/4WJmxaiZhpMSEWtbx0ZnQUyochglxR0RznuzP4BT5Aoj7IXR8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656952808; a=rsa-sha256; cv=none; b=OVdSGPyPIoA7zhDId4Jkv6SkV31NC1gRrifWbAT4UT/IWZQWq0eounhKoIr1r85GELrcMb xmD8e3bw2nL+mZTmdDtSk/BWz4JA5HLXcfDu99XOdxc4JAMI9tXbSO2BWkVE+O/USdGsJl vCCkZFq10QdDL3300TbcNmV13H11k/VxGh2TNWDI1t8VxdrgaXq5qEkc8OgpntezdL5uYg diyWXj6jDwMf8ZUNhwmzQw0lxv2HgqZ6yMFnXbXK3Nur15LIl0g+ZfAvdU8Jazpg1Vk6M0 CwZTgPKxoj9itIOzAHhbpX+g/1oDc+04Ny+FTY0Ux/ZtJuUKuiYRvYGf+hhGOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=f64845598eb5dd648e9a840e59cb1cc1896c5691 commit f64845598eb5dd648e9a840e59cb1cc1896c5691 Author: Mitchell Horne AuthorDate: 2022-06-21 16:23:31 +0000 Commit: Mitchell Horne CommitDate: 2022-07-04 16:37:05 +0000 riscv timer: provide a function for cpu_ticks This is cheaper than the default of tc_cpu_ticks(). MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35462 (cherry picked from commit 33734a1f765f8d0ca6214918c3051d88b7b98764) --- sys/riscv/riscv/timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/riscv/riscv/timer.c b/sys/riscv/riscv/timer.c index c75350f4aac5..d1b61db78a86 100644 --- a/sys/riscv/riscv/timer.c +++ b/sys/riscv/riscv/timer.c @@ -241,6 +241,8 @@ riscv_timer_attach(device_t dev) sc->et.et_priv = sc; et_register(&sc->et); + set_cputicker(get_timecount, sc->clkfreq, false); + return (0); }