Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp650359rwd; Tue, 16 May 2023 06:13:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5karei5PCkpxS9ZE4nD0rXEvfdk2MrdCgukPScyj1CHYytgMbUQzT9FFhKo+9xvTBt5Cf6 X-Received: by 2002:a17:902:db01:b0:1ae:4387:203c with SMTP id m1-20020a170902db0100b001ae4387203cmr893711plx.11.1684242798456; Tue, 16 May 2023 06:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684242798; cv=none; d=google.com; s=arc-20160816; b=AosIo+wjm8BD4TH2P/UFwPh4AtfMpZoZBqA7BQyxhV82ixzSqVCHdZyyygjs3tQUAD xLxr01y/jUyy7OPwKkSQxYtHI5J/VFKBc/zbxAOAG4WzZETUYkOM4bsfOqshBj8aSbwX uc/RQkGkHwQXpK0aIW1fQbEVFy5+tkPrQlEm3yatHX2m8DVH260Duq5vKSEDtn1CjoE2 2aJuYt8RYguL3epQm7vFBFcxRKTbkpTxq4lccXTQ9llY1Aqf0GcWZxzLXJSV1HJ/TqjS kCNY5BZxCoJ9sGjT5L0/+aSCwYKE4rBPsvNx8VVCq28169k1a67B6TE/ctuXN2cFlZjr hLqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:dkim-signature:dkim-signature:date; bh=rCUAXEAsz8309DJ9AGeQPUzpXuEWHVO6qRyqAWRVdGI=; b=Lc0nKiofoLJETbNHDQTmGWtyuq54NyY6J+SvC4RARMg4+IHk1O8z6mXhGD+zMEYMaW uHY6w0FOfJFUER4KKf3fRxl+ZL63TtbmtCvKlLw4QEvAsagHmtmurQ54hTCxASWjXH2V lrYuokmj7Xo+cijY3dAPiLXsSq4fWXzcmw2ypBH1JSlXM5RqbZ5+AkYxpFMhfpp0zQGy 5sKnqlLh7tSpqN9Uh5t4SRZ9yx5XGIH0YK5ZnD9Qawa4CXx1tfsWi/qMcw/4dLiu7b6c GOg9GfBYSGQvwhUgpfS6xgvu6rn5i4EK4EwE6flGpdFDZDbazH816m8WjEa14FPqNtYe iDtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QwW4zij8; dkim=neutral (no key) header.i=@linutronix.de; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a170902988a00b001ae3b512697si1119010plp.113.2023.05.16.06.13.06; Tue, 16 May 2023 06:13:18 -0700 (PDT) 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=QwW4zij8; dkim=neutral (no key) header.i=@linutronix.de; 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 S233147AbjEPMuZ (ORCPT + 99 others); Tue, 16 May 2023 08:50:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232355AbjEPMuR (ORCPT ); Tue, 16 May 2023 08:50:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC7845B98 for ; Tue, 16 May 2023 05:50:12 -0700 (PDT) Date: Tue, 16 May 2023 14:49:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684241410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rCUAXEAsz8309DJ9AGeQPUzpXuEWHVO6qRyqAWRVdGI=; b=QwW4zij8tFKvA6c/0M7cutc/kQAnHfjX3rN4w6viZLaf8nLbCJ1lAeX8tiTktLdLQW4uRk RvBzmK7gmYeVMm2lxS+KU0x8oOHoVC8Lor0oT64hb2aj4LapU0jOqA4I6AavOOjwYypXK+ s4PZoXXpilqtxWjEsoasyYVnNwxcbiTRl0bHiQk/GsXeDd+iQpgtNcXyWrwLNijWvceQp6 zZ80kqsKd/g2Erb/INHI7y6V451PsVqHZlPDCkco4UMN2AuRcbYbnoFmKgayFKNRMNF7A9 dAX7BJwz1hjpUDjSbM8OkCPwty9W3ZulqiSwBOi21gyloPxshSEf4ln8jU0sNQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684241410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rCUAXEAsz8309DJ9AGeQPUzpXuEWHVO6qRyqAWRVdGI=; b=FIajb0NAwUZMWmkU1adZPzUriJP4OwIH4AKExWtzhCY/SjU/RnupMeSqqe+cPMeCfvXl8F KepY6KNA6OHwxfDw== From: Anna-Maria Behnsen To: Sebastian Siewior cc: Frederic Weisbecker , 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 , Steven Rostedt , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" Subject: Re: [PATCH v6 19/21] timer: Implement the hierarchical pull model In-Reply-To: <20230515124133.XkKOksjW@linutronix.de> Message-ID: <52a33c96-70ff-e670-acdf-7fc9b25884d7@linutronix.de> References: <20230510072817.116056-1-anna-maria@linutronix.de> <20230510072817.116056-20-anna-maria@linutronix.de> <20230515101936.3amAvw0T@linutronix.de> <398d7731-f5ca-a34-9e4-77da60c49d21@linutronix.de> <20230515124133.XkKOksjW@linutronix.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-901538274-1684241410=:21271" 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-901538274-1684241410=:21271 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Mon, 15 May 2023, Sebastian Siewior wrote: > On 2023-05-15 12:50:25 [+0200], Anna-Maria Behnsen wrote: > > The part will be replaced by: > > > > ---8<---- > > > > local_irq_disable(); > > timer_lock_remote_bases(cpu); > > Do you s/raw_spin_lock_irq/raw_spin_lock/ in timer_lock_remote_bases()? > Otherwise you disable interrupts twice. Not wrong but not needed. Yes, I do so. And I also drop the return value and take the locks unconditianlly. > > raw_spin_lock(&tmc->lock); > > > > if (!tmc->online || !tmc->idle) { > > timer_unlock_remote_bases(cpu); > > goto unlock; > > } else { > > fetch_next_timer_interrupt_remote(jif, now, &tevt, cpu); > > } > > > > timer_unlock_remote_bases(cpu); > > The locking, unlocking and fetch_next_timer_interrupt_remote() is only > used here. So it if it wouldn't be for tmc-> then you could do > everything timer.c in once placeā€¦ I thought about it, but then the logic has to be moved to timer.c but it is timer_migration related code... I would like to keep the logic here in timer_migration code... will send a v7 soon. Thanks, Anna-Maria --8323329-901538274-1684241410=:21271--