Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp799636rwb; Wed, 9 Nov 2022 08:45:25 -0800 (PST) X-Google-Smtp-Source: AMsMyM5K9sU33Q9exhaNXJL9i9OXbPlN5O0e4Dfz3exTSffvq5SYiVR55B8cG9vD5K5zOe5K3G78 X-Received: by 2002:a17:906:154f:b0:7ac:2e16:bc31 with SMTP id c15-20020a170906154f00b007ac2e16bc31mr1367492ejd.242.1668012325436; Wed, 09 Nov 2022 08:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668012325; cv=none; d=google.com; s=arc-20160816; b=ofuBO7V0b3dSNIO04eqBRyV770LD0fvf6OEQcM1j/5hX5YpAE0DnjRm/ofa5aSULYa v6wCcQ1iBizKg1Q0JPAD1oOA1KqQyomRkCphquhWCFoJNwBWdTIopljLYv3nYro/lwAI Pp/f8Cato4wJtN71a0paPwaNsB1NKF+RIwo83xL38cUcBFKxrB9q2PgPdFzUz6++SBA/ +pOBLk9ztMxiQSI52KUsryeuw4WN6r7TeIE+idOX3b2nFyj7T3yCX8wKM6D4KG5tSQo0 EwWSB16mTvitxTWmib0QqPyBo10Zfm65UTOOkNw8KWDxi2PaHWWid3A9osNV3MD/6mGT a06w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7eHqXcQHtCF0vDj1HhUjBylpbJZq1gPfLn3SK78qg30=; b=uW9iPMs33oPOI4J9KRYjO78nOrK1k9LAOTNpvgaySQd2kaKC7TmaxTTT8GHcHKwcbZ YM70VIn0zyij3AEX5fdACk5Ch8vzQEIsvy76TptkgAN4q22DISIUeh9veTDkFMJn95y2 kZucJJizcqXUBGn8y9kA5jho8ve6sTtPZGJZ2JG6V5fDa3M4J9pvoSE/LbU0b98v9sDq +EP2aoEgZT5lt4WF4zFX+wtNOU/QHOMKiwe2Eb/wMEL1tzppwtjC/dbxKhiEsxlygqWd KL8Mlp5/ZjBB4bIB9HQGgv3xoaOtwSqL3CtfPxyDIwdu7HI9vcQiprqGiBogGMu+1BIY nD5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fr8NqOlL; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp36-20020a1709071b2400b0078e1e77f443si16541352ejc.418.2022.11.09.08.44.55; Wed, 09 Nov 2022 08:45:25 -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=@kernel.org header.s=k20201202 header.b=fr8NqOlL; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbiKIQkO (ORCPT + 92 others); Wed, 9 Nov 2022 11:40:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbiKIQjs (ORCPT ); Wed, 9 Nov 2022 11:39:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A965722B13 for ; Wed, 9 Nov 2022 08:39:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5A409B81F3E for ; Wed, 9 Nov 2022 16:39:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EC9DC433D6; Wed, 9 Nov 2022 16:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668011984; bh=IibbWHhqfZix6192272Stv6BuEQS3P2pB2046KfkMbA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fr8NqOlLUVG3oVWOBZDLKsIiKkemgkrFoTGKZ1gdpXnGD9AXAi3EL8YSuktFvyaQo qkSsd10Ii0E8P/q1+8/mKEYNTVPsLY92cvpQY8oWUxAdPlln59hLNI/wabwWZMYv3B WHtxfpSEuBQL2c8LXR3Q/44+ENMSVwJa5V/7XFHlJXcwiHxranfan3EybIHWiajIp9 7TrfiPQr/7RIwojvw9RX4su9wwe2UwQFlOIuXG6TKkBdA0p05IX7YTLPAZzoo+amWc FHD5f/PNnACZqgg0Yb/1ZALgjCBwG3B3oOc7KUKosXvTGgl6TYKBKfEF+H/nVOhrvn hUwccYzy/xtrQ== Date: Wed, 9 Nov 2022 17:39:41 +0100 From: Frederic Weisbecker To: Anna-Maria Behnsen Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , John Stultz , Thomas Gleixner , Eric Dumazet , "Rafael J . Wysocki" , Arjan van de Ven , "Paul E . McKenney" , Frederic Weisbecker , Rik van Riel Subject: Re: [PATCH v4 14/16] timer: Implement the hierarchical pull model Message-ID: <20221109163941.GC298683@lothringen> References: <20221104145737.71236-1-anna-maria@linutronix.de> <20221104145737.71236-15-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221104145737.71236-15-anna-maria@linutronix.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Fri, Nov 04, 2022 at 03:57:35PM +0100, Anna-Maria Behnsen wrote: > diff --git a/kernel/time/timer.c b/kernel/time/timer.c > index f8b2065df79b..214397d84747 100644 > --- a/kernel/time/timer.c > +++ b/kernel/time/timer.c > @@ -53,6 +53,7 @@ > #include > > #include "tick-internal.h" > +#include "timer_migration.h" > > #define CREATE_TRACE_POINTS > #include > @@ -592,10 +593,13 @@ trigger_dyntick_cpu(struct timer_base *base, struct timer_list *timer) > > /* > * We might have to IPI the remote CPU if the base is idle and the > - * timer is not deferrable. If the other CPU is on the way to idle > - * then it can't set base->is_idle as we hold the base lock: > + * timer is pinned. If it is a non pinned timer, it is only queued > + * on the remote CPU, when timer was running during queueing. Then > + * everything is handled by remote CPU anyway. > + * on the way to idle then it can't set base->is_idle as we hold > + * the base lock: > */ > - if (base->is_idle) > + if (base->is_idle && timer->flags & TIMER_PINNED) > wake_up_nohz_cpu(base->cpu); I'm probably missing something but, shouldn't there be a call to tmigr_new_timer() on the target to handle the new non-pinned timer? Thanks.