Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1647987rdb; Thu, 25 Jan 2024 01:51:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJyiueUsEeH9ynX//Luj5LV3RH0JY/0TJAZ0FXKMaYEwbAiI98+kAkPs1Egy6I1wVh54n9 X-Received: by 2002:a05:6402:2930:b0:55a:63b0:57ef with SMTP id ee48-20020a056402293000b0055a63b057efmr553889edb.23.1706176271030; Thu, 25 Jan 2024 01:51:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706176271; cv=pass; d=google.com; s=arc-20160816; b=oFW+HxCx5UBbw/gZKnnETMWUumLcOeIeC1/+IB5w6mSHn69xEC+19w6mnx4Phq+yp3 eXczJwjludOIao9YiqcL+0HF4eC1oEa3hXfuoPxxLcUtj92k/fJI5dp/kiVnosGhqK9Q zikJcVEH/PuWoTvNeZPI/16ArzDUZlN9wskfFURdqcqKHAQYlvGnHhotXs1HC4D7M/me 233LnBT2BT6efbe6qvg2f69tRbRc293/5FjXIU3+bTwOcS3G8hpjXDB7GfmAkQLKmeWt BTRYppM7JJXjvICucgFeMDcoEwKgdS6DDsR/U2y1zjN4WDZMXJmoY0ZGkaS1ruXcUh6T eh2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=NEumvqjxHP8WbO9/8fl6y31V1m91vIhF+/ycAMyh6NY=; fh=ArO5S2f1rvOnBmBk4qnXzbNnl1G0evdbqv5Z8pM5RrA=; b=n9K3gD638JZ9ubJ3sUWdeY+aVSY5Zkt9rjSzdZjy6EGZYXWRMtBCKq5ATrHzbyUKUR FdykN8NwaJCxGtuTYpEekoii45JVzN7ixg+EaBKN+jwGdKGcuYevfhk5siWj3iBvgpRx aJz5AtkG3eBz5E7QPw9DzbeaZpc9ln/fppP4H7AczX32R6rWRAjxcVPfq9/60wpzmtKo zh6Sfsg1IF7Cg6gjCSfWnlWDMojamSFhJkjAAqavRIRvDSbhDFLV4ryHnclOZqxYaHR0 RvPst9EMsqdojqmoMXOrHWkLNzKZqk26we+IUlB/zmIMu2/bXtdGY8U8qXPa+iAFFXy3 h2pA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bcfQFFgA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-38308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r6-20020a05640251c600b0055a36a700d7si7560068edd.142.2024.01.25.01.51.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:51:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bcfQFFgA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-38308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id AEA511F27FE8 for ; Thu, 25 Jan 2024 09:44:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA4D81D55F; Thu, 25 Jan 2024 09:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bcfQFFgA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="11gTAjYI" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 BCBAA200AE for ; Thu, 25 Jan 2024 09:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706175737; cv=none; b=CRzDPCThjSNfS3Kd8vf/YykbrYRQ/2ylS7eDplqzk9sTAJ7DafMMamL8rzGKQ3LaVKcvOevggyfn94QI82OJN6mBi8N64c0pUqk1MEhqJrNvvujJxnSKlGfaBZg/PGeQGyAkoUxNpf18UnGYPPsTYk+XPYl/dhrFAE2gVPAbJBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706175737; c=relaxed/simple; bh=NEumvqjxHP8WbO9/8fl6y31V1m91vIhF+/ycAMyh6NY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=YI03N6S2DSamIrR+qlMqo98j9TfowsjwfXEqrLs0HdSTo3ny7wkSQrMv+4f2Al0A5ghfpxoMNcceyEx1X2/d0+ht55ct9vJEQacay7mhLW0OEAF44x1D2DmB9TWnA3kX9FbIdAsDQCdqX2zwHetdJqU1kL+5Ser/LRfk5mkV+6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bcfQFFgA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=11gTAjYI; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706175733; 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=NEumvqjxHP8WbO9/8fl6y31V1m91vIhF+/ycAMyh6NY=; b=bcfQFFgAWTjag9qaPshXPXNlxhTDo/v8EwXv7/hxqWR6azO9RkiEjrbfnzSQenCFe5yUT5 LAdCicqYA9+cf2VCRVjmRlqcDsGZUbHioZJK2/ozABzhr0DFq9pxE+0gMDUbv0IcYqUgbA MSJu1BPtIUIBao834GxSNtzpn4KJNV5ayDkxl7VeWPJ4xnhrqYGnyKRsHT6bKSC7Z1oAfW Kxwzy/T8/ZKO7D7NTiYnjd4U4PaDc2iUAW5nEzX47JlinrH9I6Qhc7SejVTeTKk8e/E26d 4W/IhSqU8IaFAXBzMzk3RC94SHENVBJsr8SuigqgD6wBslFHxr340N7ThS/njQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706175733; 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=NEumvqjxHP8WbO9/8fl6y31V1m91vIhF+/ycAMyh6NY=; b=11gTAjYI3wYRvsY05ioKbPnXKwLq0hwIVN+NAZ/AMc2A1Zx0UVKsfCYLjQwEliFVaBKM40 mpjYpjJAxvlL16DA== To: Frederic Weisbecker , LKML Cc: Frederic Weisbecker , Ingo Molnar , Anna-Maria Behnsen , Peng Liu , Joel Fernandes Subject: Re: [PATCH 13/15] tick: Split nohz and highres features from nohz_mode In-Reply-To: <20240124170459.24850-14-frederic@kernel.org> References: <20240124170459.24850-1-frederic@kernel.org> <20240124170459.24850-14-frederic@kernel.org> Date: Thu, 25 Jan 2024 10:42:13 +0100 Message-ID: <87h6j1iway.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 On Wed, Jan 24 2024 at 18:04, Frederic Weisbecker wrote: > The nohz mode field tells about low resolution nohz mode or high > resolution nohz mode but it doesn't tell about high resolution non-nohz > mode. > > In order to retrieve the latter state, tick_cancel_sched_timer() must > fiddle with struct hrtimer's internals to guess if the tick has been > initialized in high resolution. > > Move instead the nohz mode field information into the tick flags and > provide two new bits: one to know if the tick is in nohz mode and > another one to know if the tick is in high resolution. The combination > of those two flags provides all the needed informations to determine > which of the three tick modes is running. > > Signed-off-by: Frederic Weisbecker Reviewed-by: Thomas Gleixner