From nobody Thu Jun 23 18:16:10 2022 X-Original-To: dev-commits-src-main@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 9B8B9876D83; Thu, 23 Jun 2022 18:16:11 +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 4LTT2y49stz3PKn; Thu, 23 Jun 2022 18:16:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656008171; 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=Pj6+z0cWhSCvyT6oYSHZoDjLllfQPX+uGBZfP1cmQBw=; b=V3pR4e8mztqpYGv4H3koJZ/i5Raxg2V+I3aJL4Jpmkt8L31ZVY0Cng7pvgouhObbylpbHs psUveVPbhxeuXAX9SaCbTZxSB5dUUyAICsOAr4wSkbzSbe4AnISN1L/xrwbe/wpQLHl0Kl jXaUcdjwcWFFlkkfQa7oYYL8LlU5IzBMn/SiJepT8j7GTGXpGk+mHzMUyCeTMnfapHaypo tFiSr3ElxiMF8ycpHzVDoXsASXGSD4sW2NgYyGvlmVpM5lRlLfDTp8h8ewcoHFV/uaQMPU oM1PM1D4sU8rW0aKDUFWPa9ta0a2jM7/aqq0W1uBLDXY0stC9hfsJHZCqbJ+og== 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 4BF0F20168; Thu, 23 Jun 2022 18:16:10 +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 25NIGA5i014983; Thu, 23 Jun 2022 18:16:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25NIGA1D014982; Thu, 23 Jun 2022 18:16:10 GMT (envelope-from git) Date: Thu, 23 Jun 2022 18:16:10 GMT Message-Id: <202206231816.25NIGA1D014982@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 33734a1f765f - main - riscv timer: provide a function for cpu_ticks List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 33734a1f765f8d0ca6214918c3051d88b7b98764 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656008171; 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=Pj6+z0cWhSCvyT6oYSHZoDjLllfQPX+uGBZfP1cmQBw=; b=iawrdWDDUFcSV2z8f+UqGtXYnSfoEjhj+c7d7t0Dt6DI0BPq74EmU8Wr7tpRXVcgoGfJHr XO5Z/rXYtfA1OOrw58I9/G2Ry/ZVsMQFAN/DyJvPtWLfmjdr1BVj8FyVFO0A67VIHnT7iv Rn4QVwxqpgCpSXl6YSC7d6vsNUM3dDM/NoxbeSMp2UxGud5Jk+4da2Kt8/09/fOHYdY0ug BySXk3l9lD9isSy8j58+af/9ndEwoeL6bXo6Po1Y/GXq4ewjQFvUqo5ln6spsiAtBC18TS U9kKH0UX/0AYeSP7w487Qyh9bvoXp3BpQRwwLu/3P6W8L9SCrXOHHQIgDIaGDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656008171; a=rsa-sha256; cv=none; b=AB/HHQNjyMBd3LA+eGvQapXFsa/5asxparAi/ibTzjns3wX1BO+8MZ3Axsbfp7D6yP1YD9 IrPF+lb87alhff7nNK74DQN8Oq1dhKkR1GNCZ16mZ2VynHVZ0b9X1+9YdR4TFPscWY6hS9 AtX2nW/7rSKbl+RIWoTmUW9a1ZHsOZGGb1EwEt5OetGouvNNWyYpGms6q2zngwbKw3hhey M3VEofF/XEuUCkrD2IVn5of3wMhxrH+lYLXsdCW0/PTuw4TD467GDf3v1dKeEJNwE1ObON 1ym6bre601vY4aVAbc9EsgnUx9uJ6HwXDz1Z5FhVyKmo8Dg6/xVDO0GuKUsvzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=33734a1f765f8d0ca6214918c3051d88b7b98764 commit 33734a1f765f8d0ca6214918c3051d88b7b98764 Author: Mitchell Horne AuthorDate: 2022-06-21 16:23:31 +0000 Commit: Mitchell Horne CommitDate: 2022-06-23 18:15:11 +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 --- 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 358b89e2be18..e7df76fca70b 100644 --- a/sys/riscv/riscv/timer.c +++ b/sys/riscv/riscv/timer.c @@ -219,6 +219,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); }