Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4599994pxj; Wed, 12 May 2021 09:00:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW4ucLqvQ+RfE/vxwFmWR6Dn8gVIwlCHpWvRlQe+jT5vp1iRTxWT14YLiX3L9wflEhwIH+ X-Received: by 2002:a7b:c042:: with SMTP id u2mr323079wmc.127.1620835256086; Wed, 12 May 2021 09:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620835256; cv=none; d=google.com; s=arc-20160816; b=U/2iICk0K4cGz6P9NEqptW6FFIrUB9MBUpkT/3lRYXobX8N0c1hoeLQmURQBEwIaiz zQmAB3lxpgXpdIUzhVu7WB6GPBObJa6gA4jElAyB8S68opaVj6y/VlovWZN23i04oSGD 8A7URT6S9IBx+JEajKmF4ww/8Bt5RfdXGLBp05yx+5gHuJPmRk9eoWdP2vQ2Gh/wxTC1 JLrniIqWo5MoHFjsHwH3ktX2D+in/n8w2yY9wMtHLiCYNkwXQfiyzIetR9x/4JtlqDkV aLu5PUmCqv68Z2z7/j0SEbDJH4fARYAVgyHKZeWf8brNhNx/8n1C11Qk+Hj8EcMgZef7 4C/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0rbL6GeNO5+eg429fW42E2zd/O/4GxDBeSFv3QUx2kE=; b=Zr254ukZwvhF5KManp1vjYHP7gJ37dzpS1oLoBg3nj+asML5Bac+So61rqVp5yzZSQ PSTN+rqBdSDqmWpRu1/iR472MMh9UMqJdhTy7W+b8/5MFPVzsKWP3sX2Ct1pB7FQHgzj gEBNiNAnF3vP9FbVVqcGvvaVvHP8A4L/v73w4Dif6PR/gaJlmRbWgeDbPlxlHIPb00Hi toG2MvjS3qwLpvY4vYpLwz13ucSiKqlth+iBbphp0lWQyTv8Zo4QupRc73RAEJ5Fxj2Z ObUbPbPUpWwwpTYse4/CcqdAcVxUBZkAgedj+GwfmcH+lvapQwEPWHAajw7TQX0pjnyl iaOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="GuB/Z/uK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si158193edd.50.2021.05.12.09.00.31; Wed, 12 May 2021 09:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="GuB/Z/uK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233023AbhELQAj (ORCPT + 99 others); Wed, 12 May 2021 12:00:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:40900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235481AbhELP2L (ORCPT ); Wed, 12 May 2021 11:28:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CA1B261920; Wed, 12 May 2021 15:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832393; bh=hqvy69HtMm1rNbYf/Vz4kiHG2W7xUeNDEF+DV6STzGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GuB/Z/uKtPPgqS1C6wrsrQs4lhE0YZQ+839DzmYJpJ6XEaLKymAfbmvu61bI30rkl MD5g6kxTgbsGhp/H1DBSfnpSFyVnvcVWQkZXt5qhv0Pnut8SuTBmzGoPE5ATKvZ1hM Cze1/t/RBerK2An0XXwF2ktiRm34bQPyunGEcqi4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.10 217/530] clocksource/drivers/timer-ti-dm: Add missing set_state_oneshot_stopped Date: Wed, 12 May 2021 16:45:27 +0200 Message-Id: <20210512144826.967377350@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit ac4daf737674b4d29e19b7c300caff3bcf7160d8 ] To avoid spurious timer interrupts when KTIME_MAX is used, we need to configure set_state_oneshot_stopped(). Although implementing this is optional, it still affects things like power management for the extra timer interrupt. For more information, please see commit 8fff52fd5093 ("clockevents: Introduce CLOCK_EVT_STATE_ONESHOT_STOPPED state") and commit cf8c5009ee37 ("clockevents/drivers/arm_arch_timer: Implement ->set_state_oneshot_stopped()"). Fixes: 52762fbd1c47 ("clocksource/drivers/timer-ti-dm: Add clockevent and clocksource support") Signed-off-by: Tony Lindgren Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210304072135.52712-4-tony@atomide.com Signed-off-by: Sasha Levin --- drivers/clocksource/timer-ti-dm-systimer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/timer-ti-dm-systimer.c b/drivers/clocksource/timer-ti-dm-systimer.c index 422376680c8a..3fae9ebb58b8 100644 --- a/drivers/clocksource/timer-ti-dm-systimer.c +++ b/drivers/clocksource/timer-ti-dm-systimer.c @@ -554,6 +554,7 @@ static int __init dmtimer_clockevent_init(struct device_node *np) dev->set_state_shutdown = dmtimer_clockevent_shutdown; dev->set_state_periodic = dmtimer_set_periodic; dev->set_state_oneshot = dmtimer_clockevent_shutdown; + dev->set_state_oneshot_stopped = dmtimer_clockevent_shutdown; dev->tick_resume = dmtimer_clockevent_shutdown; dev->cpumask = cpu_possible_mask; -- 2.30.2