Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1706947rdb; Thu, 25 Jan 2024 03:59:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZS0mF+FK7OVxO6E6HHc/G0Fm1yv7p4a9+1/QUuEBaOMqME9gamdZ/iRDBLkIKjTGRp18A X-Received: by 2002:a05:6a00:1ac6:b0:6db:e14f:3956 with SMTP id f6-20020a056a001ac600b006dbe14f3956mr496876pfv.20.1706183980488; Thu, 25 Jan 2024 03:59:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706183980; cv=pass; d=google.com; s=arc-20160816; b=g3p9TTKoU6KXtIok7WVXl22HlmbOJdLNMlNSN4tY7AUJm9w8ky9Ts5F6GcbQc8eego OIa4RSzEh84FD46vCm+lDP0F4urm/6A40Jww7QE5Y5sKNvwDPNEuXdBi4njlwzJsHSI6 9uWDVU+oHAOIeNMH7OwT1GTY6x5O9+DQvOSWkcK+ckwcONW3V1baaRXCk0wv5G7MU7kz 7x9/XBgTAPFMTp1pf5CTLgy8pSPpRCwwbS+PSoiigoS6IxZw2Hz+KlZ2F8IinXIfqA5W 6d+M3iRIWWW7VrTPJlU3a3eqea+RWDuSlD0Qngl32En28Kx8cQ3sBjW3DsgCW/8Wgpcg nDWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=36vacL9i4tT/FD9RNA34qyvoUyk3OQqiUmOJo0G0u+Y=; fh=aC3yVQg7AFGfj7yzQQtEMB5VGuhMcWYMqWRxHmcsMU8=; b=U8YpMl5kkSsIIuHdQmtOqvJXc8f9gS42wEfhDi4Pu8Gsezki7M9LNOQgzj7IQ1NUyj sEiyh+XB/jZKm58ZsD+PUhKyGDC3VkC2ESCqPsZMqIyRbeTEHHrY38A6ShFjLo6as3AE QOWl8CmKUQ+ewNBDSSOGo//86vzBBf7mSMvHiJbvl6Gn9pV2I6zcUt5lqyHfL5wJG28F gjayCTybTHQ8UHecQfN/PY1Hl5IyJJnDkAImQ+2GUsb72Q09Ofsi7cCaG1+qCrPxxcGb MGT9nBKif+BPaecP6RQ1oO4P1cvWlbf/ZXo1F6dTsKHvzCa2MMtiQimeDm8FMNoAZJov 91bQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VoApaRSF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id im24-20020a056a008d9800b006d98b960149si15690879pfb.347.2024.01.25.03.59.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 03:59:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VoApaRSF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38554-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AEE8529070D for ; Thu, 25 Jan 2024 11:58:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8CDF3D392; Thu, 25 Jan 2024 11:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VoApaRSF" 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 1061B35884 for ; Thu, 25 Jan 2024 11:58:41 +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=1706183922; cv=none; b=HZW2o4qkHFgBAuZ4laJCMThPGNpnwj2y56HGIfGkLtOT+bWIyFQ2xfYwwavHcPNi+Jv1Vs3v9l1Cs/ftDk4b9IYkaA7o4aeS8nl4L64e1evN+pK5gDmH6hjAdRpMSf+8WNoLg/KhbUlwBeN8vXYVxl96NLJfuWmpUneTbGvYGtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706183922; c=relaxed/simple; bh=as5HZhNyN7qD8p/ZHD9C3ND2Yp5b3eeuVL6G6Yfokoc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fk7sikFl4x0OMqmDUPjjtfpKlF69DhcyebZRWnmXy8r6fMLIlT5WeJtnQfUrk0cx/bnIQpjH250UtIwOZ/qNHj5smleHmE0/Q6vfLuwleMfveMGYMaB5ySatUcU0Xk6fBbvUxka1R+Va2/JiM8qms3cK/NmGhw0VGJIde5kpoAc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VoApaRSF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46B1AC43390; Thu, 25 Jan 2024 11:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706183921; bh=as5HZhNyN7qD8p/ZHD9C3ND2Yp5b3eeuVL6G6Yfokoc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VoApaRSF/5Nrohhuh2Md0uscjCbXksrYM78KzRq8Dj9YL5fJvxbrjfWMA8EZuwlUf qmRpm0XG2gtgBp/UkU8hzrYB8qcoY4oRpgbmKxV/RmA5QUHgvYYtAE+xYkmxtJmm9j D7lsEvivxJjYG207zvvJfZ5Ye+VhG6W/k5m4uJadsUPGpt30/WbA5LK0VGH7OwN2Rp r9qlkXruwRnU3GWeiiV3tuYNlcF4EY2Ol3zmlQmT8JX8yZSdauRScUFFqPOq6liQdl SaaTAhyOOMShcuKXSrcAiSB2lslOwN+FCKK0ch4+tNPAx1qb70gJ53S8xxkElq2fV0 mlPUBcKpixl3A== Date: Thu, 25 Jan 2024 12:58:38 +0100 From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , Peng Liu , Ingo Molnar , Anna-Maria Behnsen , Joel Fernandes Subject: Re: [PATCH 02/15] tick/nohz: Remove duplicate between lowres and highres handlers Message-ID: References: <20240124170459.24850-1-frederic@kernel.org> <20240124170459.24850-3-frederic@kernel.org> <87ede5kbc6.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ede5kbc6.ffs@tglx> On Thu, Jan 25, 2024 at 10:32:09AM +0100, Thomas Gleixner wrote: > On Wed, Jan 24 2024 at 18:04, Frederic Weisbecker wrote: > > +/* > > + * We rearm the timer until we get disabled by the idle code. > > + * Called with interrupts disabled. > > + */ > > +static enum hrtimer_restart tick_nohz_highres_handler(struct hrtimer *timer) > > Isn't that a misnomer now? Would tick_nohz_hrtimer_handler() make more sense then? Because it's clearly an hrtimer handler, just emulated in low-res mode. > > > +{ > > + struct tick_sched *ts = > > + container_of(timer, struct tick_sched, sched_timer); > > Let it stick out please. Ok. Thanks. > > > + struct pt_regs *regs = get_irq_regs(); > > + ktime_t now = ktime_get(); > > + if (likely(tick_nohz_highres_handler(&ts->sched_timer) == HRTIMER_RESTART)) > > tick_program_event(hrtimer_get_expires(&ts->sched_timer), 1); > > Thanks, > > tglx