From mboxrd@z Thu Jan 1 00:00:00 1970 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 627881917ED; Mon, 19 Jan 2026 22:00:38 +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=1768860038; cv=none; b=n09AkiYjmoQmI0I2vD28hNxVsXzYVxPyu32s8Xm8eF7/uemw04EB7eOorVw5rPE4FZfPxcVPGwHpASUPWV6HIhTq8P5GeIG2GgquUjymbMBcUnBThGggQGJZ/kOzbY07ktBNWfKwgI/Fs8MfIlkIIyN5Pf2m683Fteh6v7jss3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768860038; c=relaxed/simple; bh=i93O1wnS4zj4pX0251MiaGhsQUiCSCNVJWX9Zn2+X7k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SLKS1eDy1aqLQ0Wli6ItUbAzcdtS4A6ADKZQsIBuyZnGwgqLAPMgWJ6Dm0WCPvhzgV8zQipiEuT0JgS8YshoD3Yg5Li/OmGY4pAFNG/FdNdWxevpUFLL5PJ1GeF6WSm5W/R78WIkeHzOc1jCcj045uN4Rf2wd10gbcitVMN+0x4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gBzzATy6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gBzzATy6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 633DEC116C6; Mon, 19 Jan 2026 22:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768860037; bh=i93O1wnS4zj4pX0251MiaGhsQUiCSCNVJWX9Zn2+X7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gBzzATy65nCqBqK20u1xQ84huXMH+axu3TXK2L6DC5nd8yziq+TvpuslsmRRobeQT VH7SNLOdLeNcBRj6UUrfbhXFwGgiKoYEVpjMnlb01pfhCGyz7OXEafYW++2K6D93/o FYjzCNlDytNmD4UlzSxcoJdOsxCYn+Z/kz4RlVnQcK5VoZRLga2nmSopJTVQ/YQZ4k dXpEOBgNjZJRJGZ8eFREAdqzrfDqVXrgs/zrjSZSTezsgrTa1GMy5eBjt31vzYB0GM /hOWyVZ3Xz97w+bSw11NPtmhbdCmx3cxXFkj36kBjpJGxbQzNx0ugkqbn5P/9S2WfF SWgWuYyaLSlRw== Date: Mon, 19 Jan 2026 23:00:35 +0100 From: Frederic Weisbecker To: Peter Zijlstra Cc: LKML , "Christophe Leroy (CS GROUP)" , "Rafael J. Wysocki" , Alexander Gordeev , Anna-Maria Behnsen , Ben Segall , Boqun Feng , Christian Borntraeger , Dietmar Eggemann , Heiko Carstens , Ingo Molnar , Jan Kiszka , Joel Fernandes , Juri Lelli , Kieran Bingham , Madhavan Srinivasan , Mel Gorman , Michael Ellerman , Neeraj Upadhyay , Nicholas Piggin , "Paul E . McKenney" , Steven Rostedt , Sven Schnelle , Thomas Gleixner , Uladzislau Rezki , Valentin Schneider , Vasily Gorbik , Vincent Guittot , Viresh Kumar , Xin Zhao , linux-pm@vger.kernel.org, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 06/15] tick/sched: Unify idle cputime accounting Message-ID: References: <20260116145208.87445-1-frederic@kernel.org> <20260116145208.87445-7-frederic@kernel.org> <20260119142607.GG830229@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260119142607.GG830229@noisy.programming.kicks-ass.net> Le Mon, Jan 19, 2026 at 03:26:07PM +0100, Peter Zijlstra a écrit : > On Fri, Jan 16, 2026 at 03:51:59PM +0100, Frederic Weisbecker wrote: > > > +#ifdef CONFIG_NO_HZ_COMMON > > +void kcpustat_dyntick_start(void) > > +{ > > + if (!vtime_generic_enabled_this_cpu()) { > > + vtime_dyntick_start(); > > + __this_cpu_write(kernel_cpustat.idle_dyntick, 1); > > + } > > +} > > Why don't we need to make sure steal time is up-to-date at this point? Yes, there could be steal time since the last tick. It will be included and accounted in kcpustat_dyntick_stop() and not substracted from system or idle cputime (but it should!). This wrong behaviour is the same as the current upstream behaviour. So no known regression. But check the last patch of the series that tries to fix that: sched/cputime: Handle dyntick-idle steal time correctly Thanks. -- Frederic Weisbecker SUSE Labs