From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 7FD2E44CAC7 for ; Fri, 27 Feb 2026 16:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772209535; cv=none; b=rDp9BpC4E0wr1bXwEz4PnePmlkhe7BwXVewITFhT3GWI4ZtCKSKeWStfoBBkklJ3Lddn9CPhOKQHsRknWEoGoJUTTLP1yXhjfs5wjfnahIrVC5Zo4UENu+fkr+OQqsxFE7EgjBvxDsEMJRD+Lq9qbPvkU8fbHo1IeyM2yXoPNKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772209535; c=relaxed/simple; bh=pp6gnjmH3vzRN6kksNaHOedd5JZfdX/tllxQ1cZcIiw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Di9MesHTje4XFtVSL62r5LMbBvIUEqCOPkguYd0kYaE8UoKeR69TjmLchROds/gqLK1BvrY8AlSXrSkR/Aubgak815AqYS8xigROhHjvzFI8TrRXGmAzJ24EFIcfSgPeTv3rkXijZM7QHuf+lDewNXmtyxRPI8/dmNuyfosftI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=HZYs3NnO; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HZYs3NnO" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=I/qSfjFRnxaUn27TjLrVcGZI9DmKHmllPdPAL7WnmWY=; b=HZYs3NnOTvvWqXoh/FTxFDBUNn bvSBIQQh2P23BSxnHIYhhVj1hLen7drr5Guy06uXOHP+FgP4S+LFiutmi2mMIV7RHH4uPzdeu8RVj EUZe0N74bnPZ5vDaMHne+zxCTVy4Ppfs08J6tAejJ6BvHXkWq3kg++uEwkCxTFVsFZBgAY3SUy7Wj Qy63l6y8lavt9JW0Jfz9KTg0ggfGfnpHMIdK0GuLzojEpWTn0E8mzb/HPQh46UZfVNSFFoN81zXYj Ye29oBh+M+QXAuA0UCi9U/b1XHqirNZb/yiu08pCfvxsDaQZHnYfECp1Io+FngnfoHF0YXYZ9k78O cMteaQ7Q==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vw0eY-0000000DUbM-0YAY; Fri, 27 Feb 2026 16:25:22 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 8AB9F30066A; Fri, 27 Feb 2026 17:25:21 +0100 (CET) Date: Fri, 27 Feb 2026 17:25:21 +0100 From: Peter Zijlstra To: Christian Loehle Cc: Thomas Gleixner , LKML , Anna-Maria Behnsen , John Stultz , Stephen Boyd , Daniel Lezcano , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , x86@kernel.org, Frederic Weisbecker , Eric Dumazet Subject: Re: [patch 35/48] entry: Prepare for deferred hrtimer rearming Message-ID: <20260227162521.GI606826@noisy.programming.kicks-ass.net> References: <20260224163022.795809588@kernel.org> <20260224163431.066469985@kernel.org> <51f8535f-b98c-48e3-ba7b-f28759a92c16@arm.com> 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: <51f8535f-b98c-48e3-ba7b-f28759a92c16@arm.com> On Fri, Feb 27, 2026 at 03:57:55PM +0000, Christian Loehle wrote: > > @@ -239,7 +252,7 @@ static __always_inline void __exit_to_us > > /* Temporary workaround to keep ARM64 alive */ > > static __always_inline void exit_to_user_mode_prepare_legacy(struct pt_regs *regs) > > { > > - __exit_to_user_mode_prepare(regs); > > + __exit_to_user_mode_prepare(regs, EXIT_TO_USER_MODE_WORK); > > Should this also be EXIT_TO_USER_MODE_WORK_IRQ? > I guess it doesn't really matter for now (since arm64 doesn't have the generic entry > path and generic TIF bits yet and therefore HRTIMER_REARM_DEFERRED=n), but I've been > playing around with the this series, the generic entry series > https://lore.kernel.org/lkml/20260203133728.848283-1-ruanjinjie@huawei.com > (and using generic TIF bits) and noticed this. I'm confused; if ARM64 goes GENERIC_ENTRY, its use of legacy should go away and we can delete that whole thing, no?