From nobody Mon Jul 04 16:40:09 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 4B28D18941D1; Mon, 4 Jul 2022 16:40: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 4LcBP55kbLz4S79; Mon, 4 Jul 2022 16:40:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656952809; 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=MsSysRxoABraCWEnl9Iq3N2Q/IvEFSEiiwDJJQMMVug=; b=bC6sMpq5fqfhGKAA9wmGOzMWMZNxkfSNsXE6L0nj16WPS6AK0/WBWtZtqXGuuc/GntqvZr v0JWihJ7epbGAbL+nuf/Y+gh0i+0KlCBDyaHakJyYVuvStwSz4MMWLM8+Dc1UOeKWiZ/jX 5G2UKD4geepcuL0RmPLfnA6ByK119kPfHicvRMm7t6uY3oEz/W4hVNGx+WtemJGXDDHD6I k2HNkr3ENFcQ+Yg8KNWTr7Ri/fXo8MHyCuwec8tC6QnJugr0XvmnMy+J4trnPUTc0gvBYM Z2ceFpwGC7PoUhi6cE/Iohp0xmz9vaWenkKsVwotLoLZPgz3bkqBGvKPQyGkuw== 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 4A93C149B8; Mon, 4 Jul 2022 16:40:09 +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 264Ge9n7044165; Mon, 4 Jul 2022 16:40:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 264Ge913044163; Mon, 4 Jul 2022 16:40:09 GMT (envelope-from git) Date: Mon, 4 Jul 2022 16:40:09 GMT Message-Id: <202207041640.264Ge913044163@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: 25ece2331fe8 - stable/13 - riscv timer: implement riscv_timer_et_stop() 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: 25ece2331fe8aa606c8d73623057b58d1eee3a1f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656952809; 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=MsSysRxoABraCWEnl9Iq3N2Q/IvEFSEiiwDJJQMMVug=; b=uYeiz/aK/Ya/aCF1W0LaDn/MaX94NaQogIWb8F+7rzobJiul1K7sPDHmbTGECfVDRfaX+A 2Yxn1tCuSTIshoxA2sHNYLZSIKlx09YWLrdDe0bVqrT3vPDYtzdVvBsfOxjTSjC/Qc89OB AnXxi6lU1QaExbExucf03dNzQsyN4q/EYeJzy485kvgQ+ErgvLRHQUPHLUpfleoMoe+cn7 J8NtBEbAGJ3NcexstC4W8DZ/LPnRNYmuS81+tk/DPtV4Pn+J+BvDIkJm00BqhOn1r0jHRB /ApnGk0OXaC6czchrOYiBSDH6kFUfobj6HU5Yv1ujhwnVXEB0kb9ktJbJIrzxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656952809; a=rsa-sha256; cv=none; b=FO3NlGfCramG7WUhAFPU8aYDrA8ztG4ukX7g6iHfiaFPzhLrVj6IKeEgSnUnmFKUNc2pJ0 ojoK0TxA3NYtZIYZILhgpCvwWE7sgL6j60DryFdC8CcLDjQWtj6cA5KsczR98L83Hn7Z+A KvtgW5spmaqjznzu6uul5CGjQlbKA12vM/89gsLV0J0LvNBxKxARm1ojQ9cs7hhDPAEkly 8aMRDo2wmVcTlMUCcuIVgzjESBizBWh9ONTsBpSvjPTwAEbtwUFmEmw6DctRv6X7jqgT9U dfStYdM6w5iTOl4zmWYcqBqGCKpWMBddyIU0BtHhOxFNjkcrhAjvsKAD8eUk/A== 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=25ece2331fe8aa606c8d73623057b58d1eee3a1f commit 25ece2331fe8aa606c8d73623057b58d1eee3a1f Author: Mitchell Horne AuthorDate: 2022-06-21 16:23:40 +0000 Commit: Mitchell Horne CommitDate: 2022-07-04 16:37:05 +0000 riscv timer: implement riscv_timer_et_stop() Simply by masking timer interrupts. MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35463 (cherry picked from commit 3a4256dd86f01a35b076892841042bac0054fd64) --- sys/riscv/riscv/timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/riscv/riscv/timer.c b/sys/riscv/riscv/timer.c index d1b61db78a86..34bc7590e397 100644 --- a/sys/riscv/riscv/timer.c +++ b/sys/riscv/riscv/timer.c @@ -142,7 +142,8 @@ static int riscv_timer_stop(struct eventtimer *et) { - /* TODO */ + /* Disable timer interrupts. */ + csr_clear(sie, SIE_STIE); return (0); }