From patchwork Mon Feb 13 18:26:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 56428 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2502123wrn; Mon, 13 Feb 2023 10:28:56 -0800 (PST) X-Google-Smtp-Source: AK7set+YJ/HZQs33N5QxHB2eUKHvZLGTGGdSn3oaqQLqFn1i2WXAG7hrIrTec+S5aR36x9ILKU4S X-Received: by 2002:a50:c007:0:b0:4ac:d2b3:b724 with SMTP id r7-20020a50c007000000b004acd2b3b724mr2016999edb.27.1676312936092; Mon, 13 Feb 2023 10:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676312936; cv=none; d=google.com; s=arc-20160816; b=ASrMV9RrvKAVjjeziKwBHZktyWBMm5NK0EpWZKXnyjF9uDVlPOlsowThSAS8hu7wMt q4E8re9Nwr+HfF2zd2mlxDF7+J04GqiVhC/U9ubXVwRWJ3GeK0Md/snDDImjVqEW5yA6 r0n8gQbpKcDsanmX46Voqs25TOXt4wWet56GnTMzduQhEQn+PIex+a8fCVWDc1rxqAFK WPkX9Ruv9Fdjnqkn0EJYZUS0mOQVvl3ONjdoSuug9TN43BbUdhTpxSeVD+wJjTqUYpyv x+05VCJ93Q8uKXSQLLzSG1b1fb9mSNP1rVvq6TZLiDYiKkLvda4O6U5CtWRVy7eKyfrT 0uNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=yBmUJrckZ3jPDtiTD3AqLJ/uLCnF2ZRbzYInXqOzvMw=; b=v+btaAItIavqc1ZAuQioiAjJfQzNxIKB30PV7bod6C5BLoFlobQZn6ohblpoAMt/8s DkHaH7+qus1ayaP81U7A33T0kxtc3Bizma1ja12rDfyVvIMi8OjSbTyJrny4+jFrF5Iy YJKXKdSSIpIyOzdM2bcCIxHwa63Ia5EkbrOGJP6R5bw93pL1Ajof2kV9iULrIGRKowcQ zEnd7UDDHRE8f0FT8ds7/qKThz388A5c/eZpXRq4BRjdBHQJUe2qsZAt2DwOE/1Kexrg mboR4dAeWf8wnnb37jTli/qdnbX/i71ypWknwQZCGUMUUQzAHm7SxpfJl5ewUIISOUAQ 4EMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rUjgeuku; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/QCd5M0X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9-20020aa7dac9000000b004acb8c12309si8209390eds.575.2023.02.13.10.28.33; Mon, 13 Feb 2023 10:28:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rUjgeuku; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/QCd5M0X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230241AbjBMS03 (ORCPT + 99 others); Mon, 13 Feb 2023 13:26:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjBMS00 (ORCPT ); Mon, 13 Feb 2023 13:26:26 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0189A26A0; Mon, 13 Feb 2023 10:26:23 -0800 (PST) Date: Mon, 13 Feb 2023 18:26:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1676312782; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yBmUJrckZ3jPDtiTD3AqLJ/uLCnF2ZRbzYInXqOzvMw=; b=rUjgeukuMEpVvKWuwwA9C80WW336APoSNvDOt1zeOQ8yI1EqEama5b6FyJ++Rgdrey30Eh aHTi9ZAkVJk9r0y+ujwOoIOw9NhlTwhuGGNq4U5qLrHZxWqSo5zeURN4DJmdy3w58KmSSo m3SILJWk8TEqbNWmW6hY2v9umFt4Vxq2FI1j8a+Nne12PoerYpImsjvgj/gikHXpLQvdCj kpuqh5b4ksR2nhSurbrQntvg4sB3bOXdS6rRp8ZUzM83deNhNdG872o7hlSPy947YQvjiv dTi0LLHLSAvLN4zsBzUgM1gR2fCERjfl6HnV/j9RFyGbGQq8Nv2jhQdYM6cckg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1676312782; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yBmUJrckZ3jPDtiTD3AqLJ/uLCnF2ZRbzYInXqOzvMw=; b=/QCd5M0X/yP7bWsoB6wGo56T891EAdmjaINo2/+noj2KkvE3Fol194BQ/DHkSRaP+Xv29v rl5XyiEBRgugYVBw== From: "tip-bot2 for Yangtao Li" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/timer-sun4i: Add CLOCK_EVT_FEAT_DYNIRQ Cc: Yangtao Li , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230209040239.24710-1-frank.li@vivo.com> References: <20230209040239.24710-1-frank.li@vivo.com> MIME-Version: 1.0 Message-ID: <167631278133.4906.4239222579373773162.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757325817862112253?= X-GMAIL-MSGID: =?utf-8?q?1757741513505279264?= The following commit has been merged into the timers/core branch of tip: Commit-ID: 5ccb51b06c8bfcfca99d3f68e671eead7318301d Gitweb: https://git.kernel.org/tip/5ccb51b06c8bfcfca99d3f68e671eead7318301d Author: Yangtao Li AuthorDate: Thu, 09 Feb 2023 12:02:39 +08:00 Committer: Daniel Lezcano CommitterDate: Mon, 13 Feb 2023 13:10:17 +01:00 clocksource/drivers/timer-sun4i: Add CLOCK_EVT_FEAT_DYNIRQ Add CLOCK_EVT_FEAT_DYNIRQ to allow the IRQ could be runtime set affinity to the cores that needs wake up, otherwise saying core0 has to send IPI to wakeup core1. With CLOCK_EVT_FEAT_DYNIRQ set, when broadcast timer could wake up the cores, IPI is not needed. After enabling this feature, especially the scene where cpuidle is enabled can benefit. Signed-off-by: Yangtao Li Link: https://lore.kernel.org/r/20230209040239.24710-1-frank.li@vivo.com Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun4i.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c index e5a70aa..7bdcc60 100644 --- a/drivers/clocksource/timer-sun4i.c +++ b/drivers/clocksource/timer-sun4i.c @@ -144,7 +144,8 @@ static struct timer_of to = { .clkevt = { .name = "sun4i_tick", .rating = 350, - .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, + .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT | + CLOCK_EVT_FEAT_DYNIRQ, .set_state_shutdown = sun4i_clkevt_shutdown, .set_state_periodic = sun4i_clkevt_set_periodic, .set_state_oneshot = sun4i_clkevt_set_oneshot,