Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1657398rdb; Thu, 25 Jan 2024 02:11:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9l5T4/3k3iX5VLZYWMy7GgdJI/S194B6V8DUayJrMbcpxwiuLRetJ4ZqyMllonU/uzMo9 X-Received: by 2002:a17:90a:4312:b0:292:7bcd:913f with SMTP id q18-20020a17090a431200b002927bcd913fmr383355pjg.71.1706177517646; Thu, 25 Jan 2024 02:11:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706177517; cv=pass; d=google.com; s=arc-20160816; b=xBiYHqsR1Wqvg6C7+7XNimlbAO7IklR0z/86OTN8d/hfZ19MUvmhVv4S/yJFPHnua0 qoXZKZ5aBuYWW4iaXessQ7cZDCmZSOSpZ0y/aQ4Dm1TaST769ZD1A4jX/GeSwhMK66Oh eTkN9maa7iIG6XhZ8J49gYa4crWeavoDaE5BxRB6hhtUxYQ49HQkZScHjdTK4ZKE4fZt gUijP33TOqx367ZXsieZOFya6YmRFbBnSkzf8t2I9kJlWdJ1mf0jA2xSqnobIO+uTDC6 y5WOW8428LJdB6ciPINU0dpUYq/dWPA4FXXCL8l1jnBCQPCRuBup0Xt4nZxmc3YfLDQO vAcA== 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=HHaNmuuMFoccSi7UKzoNUMbU4aXCm8j8ix/KK8/y4kA=; fh=blWNe4pa/Ki8jIT+6Q+txjGYFsdM351I7b+vOOIsl/U=; b=cCWo129Wq77pwriIrBxnr4lK+o3Sn9HUAzb706YW91MmAfG5eU6tOYTi1xBxGGs1cU BGd2hLy3LWw7YWwC/m4WXD74Ec9iMmqDQC+YTZROxjqER/1PHuJ0VFadHctfXoLmVtt+ svxtQscXynwlkUaNSRKvVjQOT5xoHKZUJNQjFp7wywf590sGbCyybVTy4kdpNZizLnsG 8TVRFb4kRK1Pd7oVHc1G7SEMAFEjEeMmQRQ+fHICzENK92ubkyeLKt125iY8GktGs4/x 6/+X0tGDqiHYMsXfMzSNqTlpL7OCAuSFOIQKggTn3wsTc0AU9KlmL/AZl8FcSfzFyZQR UcOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YvWEJZnW; 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-38274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id iq22-20020a17090afb5600b0028e79c30119si1087296pjb.90.2024.01.25.02.11.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:11:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YvWEJZnW; 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-38274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38274-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CC0FCB2FBC8 for ; Thu, 25 Jan 2024 09:34:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6FC21CA86; Thu, 25 Jan 2024 09:32:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YvWEJZnW"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="JfKkIHrW" 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 C3F7F1C6BB for ; Thu, 25 Jan 2024 09:32:11 +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=1706175133; cv=none; b=YJEgamzzlPSg+jMJtmzNFH0DZIP+tDkj1P5sLO26fzFqKULN82aDr41M/v5pKMCFg7AGNqnD1Cp0U96JqynSXJQtuBV4H2k19Ym4ArmSite1almgrHS16VkBZtY1sNmT7NiPhk1Vy1cOMMmY3qH2n5loZK+SnFX1EgYbvaVx+vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706175133; c=relaxed/simple; bh=NxgGGEvaIfQTjNPxcN9BZqIvfJ371lOwZ+R4OCybqDE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ieHjdP8XpFNcFVr6jE0t3mq9V45QKXAT5RIuf6HCKI6Yn8KruF36WLiZW5ZeKVWBaLWZNNYm51VUadLZCBERMC1zuCdeb99HtGTrvD8gPtKn3DnVLtZA4K+jmQ6Xks3UV7MEdIKzNNZMWolml9Zd/RohaX7x5ENtgQZqOuCDLq0= 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=YvWEJZnW; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=JfKkIHrW; 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=1706175129; 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=HHaNmuuMFoccSi7UKzoNUMbU4aXCm8j8ix/KK8/y4kA=; b=YvWEJZnWIb+9pDwzHiI3zFE+9XxrQ8B8YnLkRYHk1Tmaumop036e8PAMfxGD9w2z4gCgWE B0GGRyVxaMlXrJwuVkA3YbjTuudl9WlrtER92xZyR5eR36kUUUMKRXZ4/k8T+uGPY0ZrpG m1/ZojmHWCPZk7yZugg2kSpZ2xxVHS8nVYUKF0fodDXeDriuC5iPXxebr2i9QuVsVOQHLD s2Y6T5H4vX/o93iXipt/nxfYYE4SPy2dRsYOWAyw8QqYPEm9SBoqFbMbPvLoWsrwSmIxRU +e0EOqc/UM+cu5XLGD4uoD2czED6WTvcbkBIHWPJgzyeRxGGf9NE9cVAfAgX+w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706175129; 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=HHaNmuuMFoccSi7UKzoNUMbU4aXCm8j8ix/KK8/y4kA=; b=JfKkIHrW4ixYzZUF9boPqwnuWHZQvCuTTzhAk1d/UxJbjt52DhICjAJbFNRnPKDnDApX3o 4v3zH95t2dT26iBg== To: Frederic Weisbecker , LKML Cc: Peng Liu , Ingo Molnar , Anna-Maria Behnsen , Joel Fernandes , Frederic Weisbecker Subject: Re: [PATCH 02/15] tick/nohz: Remove duplicate between lowres and highres handlers In-Reply-To: <20240124170459.24850-3-frederic@kernel.org> References: <20240124170459.24850-1-frederic@kernel.org> <20240124170459.24850-3-frederic@kernel.org> Date: Thu, 25 Jan 2024 10:32:09 +0100 Message-ID: <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 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? > +{ > + struct tick_sched *ts = > + container_of(timer, struct tick_sched, sched_timer); Let it stick out please. > + 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