Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp134557lqo; Wed, 27 Mar 2024 08:49:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQnpyiBKiN99uOMaELUEKXi+CSfEpaHIeS0o2Cme+C0EAdfojNj1Bbh8xFKyIxZeMb9jjx9pQg8voaqfxM1Zl40forzqnBRHYnAydKwQ== X-Google-Smtp-Source: AGHT+IFSRxvx8Og09YKaMkzBjEFqAtE0xwL8RiXKH7dQKFFsDcYkdz5Mrn1UQP6OSQ/b922oNVog X-Received: by 2002:a05:6830:f:b0:6e6:8744:2253 with SMTP id c15-20020a056830000f00b006e687442253mr157915otp.22.1711554571293; Wed, 27 Mar 2024 08:49:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711554571; cv=pass; d=google.com; s=arc-20160816; b=qWf+bu+NV6JrSTGAqqKvKOObv3BTJMlaIk3mseVHQlCjKzDf7ZGRixYDxb+arFAF7q +ZitG4tW8i0CUTk2TFgLm8ubuBbOx5e/y6PYb8dHXBE7w69cRZcrPWZvMFB3jJSTshdd tEQ3lhyFN+ADkuoPpRPQTII4A0DwSq4yfsIe004gCYM2Vw0QyZ3r+4vKzp/SXIzRF1/d axzNJSRszCj5aB0+8vwT7hZfz0GmT3clYgD6b1ZaW9UXeydS2rA5RbhnYPIWUko6Z0vi Ds/mkau7QHK4PjxQGOSaJDAqJJcuwEIkdAxibM83KKg0gyHxG5MEZB1Lym2Ye3821HpL eEIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=iSoG4dZYPzfBxDKZl6jFbqeEimYok5SbT4sel7ztx5c=; fh=m+lkMSgpAsPrsBPjNkIveMqClHfEKCUqtpjmyG590AA=; b=gzxKC2z+ZZSNIwhVZz0GmefyxnXK6Gta54BKMr61mTz9bOtMS8vy+up9Pw6ngbJR4x B0w8cQMEefxvAHSM/keK2mFJnSp0ruzivumeroEi0dKakwDFaTFrQIZotIMqhKB0T/Ie kqBe0jVFRldK6h8qc+U/cM+2FZVpaohgVIuXfGhyzbD7sEVyAiOCiRZ/zLGoMv3mD4jl 9KJ2CIQyqe39jDQsHbSCLNHEQ4ljRs1MzQTi9wQt58uiWCDITqUgfKxcN+WVePJb7ayy Qu5DKWqwObr0fqEYjDNo82HtxBXda4pGQfgeRW5R20N1J7I9l9jbpzSaB2ivtoYS8c3/ fu6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yg8dExgq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a16-20020a05620a125000b007883c2043d3si10163863qkl.139.2024.03.27.08.49.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:49:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yg8dExgq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 083231C31488 for ; Wed, 27 Mar 2024 15:49:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07E3C130AFE; Wed, 27 Mar 2024 15:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yg8dExgq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D4C3130AF0 for ; Wed, 27 Mar 2024 15:48:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711554499; cv=none; b=IH04Nbrg/iLNvsJliD8cvR2+ASi1InZu5OnFzY6RStANOpB+UTSMmPUTpb8IlYVHfpPlY/mDvnNjy77lt8RiB3Culk/g3mz4cajfwswyI+l5x791sKueqIQgbKTyLiDLoEMYkRnzyzm3NrAH6htOXt7GpID9a9G10SI3MbZXG/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711554499; c=relaxed/simple; bh=go4I6kAm2xNWlWjSFNfYVEqDcGhAdyxTeUu+DcP2luQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SDihs6yzTFxHsoKLBwLvdW86GfCk0kzj4tnpaqjZl/T3CzGUL/5hze3qU6g4L9blkZ9HsgVE02+GXOfxu6AblNzjDIuHBKCyixDGAl6yIl4QdB1zM6qS3v1I+J3NOP2MfVq4Sh2m1Fd7DjYJEMwaHIwhz/PpI2Khz5Idw4EyXFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Yg8dExgq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0039C433F1; Wed, 27 Mar 2024 15:48:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711554498; bh=go4I6kAm2xNWlWjSFNfYVEqDcGhAdyxTeUu+DcP2luQ=; h=From:To:Cc:Subject:Date:From; b=Yg8dExgqMQWKS9zGTfLXFKZ44ip7t4QXO9iQH59tWPRZms7ITLpIJsRb1geCP/n4F cR1xEdgmToPdqBB/rg//HuSUJt34947vliqgVJS5YvK7cpK1nhHwV5zk2nhli/p29F fXytaasWJ5e+EHkfcLxtGfXO7ugCUYe8/qUyiU8oNefgH/fNYroPBHDtyiJJunJD/7 iM08xMFKfPfFKPVNBqzHTjHI2tOLjtiAQMTAbb3StbkapKBaGwKBMS3YQgmccGZ+KP d/C6Z14x7IEF4b673oMwBn2vcGIBa6DjztuC4DOJ2vRBaMLM5UM0wv3OB64SZNn+yD u9DVh1GR835iQ== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] clocksouce/timer-clint|riscv: some improvements Date: Wed, 27 Mar 2024 23:34:59 +0800 Message-ID: <20240327153502.2133-1-jszhang@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series is a simple improvement for timer-clint and timer-riscv: Add set_state_shutdown for timer-clint, this hook is used when switching clockevent from timer-clint to another timer. Add set_state_oneshot_stopped for both timer-clint and timer-riscv, this hook is to avoid spurious timer interrupts when KTIME_MAX is usd. Check commit 8fff52fd5093 ("clockevents: Introduce CLOCK_EVT_STATE_ONESHOT_STOPPED state") for more information. Jisheng Zhang (3): clocksource/drivers/timer-riscv: Add set_state_oneshot_stopped clocksource/drivers/timer-clint: Add set_state_shutdown clocksource/drivers/timer-clint: Add set_state_oneshot_stopped drivers/clocksource/timer-clint.c | 19 +++++++++++++++---- drivers/clocksource/timer-riscv.c | 11 ++++++----- 2 files changed, 21 insertions(+), 9 deletions(-) -- 2.43.0