From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D6CAFA0C36 for ; Wed, 15 Apr 2026 06:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=D4IWqjLAxrBh670kFtitiIgXoOH5Wk9dWJgsH3Z8snA=; b=Hy15OJpCe/ug5sR6MpskKokP3t WBirgNc+GXLI2v3mEHNBrvbQcNQBgFRWtv7yZk+gMopMnREEeVEV/iCiGMZBcItzRmU4AVUGi2kgL DlL1EYAw2JhtFSCbt9jcGFl0HCIQKnsUijPzIvJAyrrNMduoaxMWkF4pReFUHNakhAZ4nhsOnBAuv OrYmjuFbWBeIMZcfexyAHaFT+ZwQVgnbPwSrt50wSmEQp8iYmIdpyNcOJ+PdnmLd7qpqCEqFYWiT9 8dPypUY68+kcBqqMA2M2fg5xWCcHb1u5w2XR85AP6959UvNNWhWiS0NDPfCrJqRk6JXi5s2NHlRS1 0dDjCoDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCtta-00000000eiI-21nd; Wed, 15 Apr 2026 06:38:42 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCttX-00000000ehd-2zpS; Wed, 15 Apr 2026 06:38:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 540C64369E; Wed, 15 Apr 2026 06:38:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4603C19424; Wed, 15 Apr 2026 06:38:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776235117; bh=oJA3I+zKvq9KD+ojZoVICzDS05lI3MCnC5Rlh6cn04Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CW1zPJNSJCGtniBmy6uyWDY71JAL0i4dK/N5qkFlNYs3kz0wXN03HHuHTh1S4hKQi e2yWcwq5RclCcCVX6A0Lopstyv1iJwvVwNRsKmdSs6NBxbKPvhq3apDF5Mh9EQ73Js q6/zItY3OOkWbN+i3+Ng0jCLJkMAwhrFhYQnM+LI0mETHNwewJwuPg1EQX95XcPKNN j2R4mf89jj4nr2TUgQRoKIUpiIuUlriELzBuol0ebMztd/ZZRtnQ1qtW+tQ2/QgIAp oYZF1auoZqP0e9mHU9TqSeeI5ff2Bxo+lnB6gCW6VWEs5KrEifF6NFFvP+OSWCop4o Cz3scEaJinP/g== Message-ID: Date: Wed, 15 Apr 2026 08:38:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [patch 32/38] powerpc/spufs: Use mftb() directly To: Thomas Gleixner , LKML Cc: Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Arnd Bergmann , x86@kernel.org, Lu Baolu , iommu@lists.linux.dev, Michael Grzeschik , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Herbert Xu , linux-crypto@vger.kernel.org, Vlastimil Babka , linux-mm@kvack.org, David Woodhouse , Bernie Thompson , linux-fbdev@vger.kernel.org, Theodore Tso , linux-ext4@vger.kernel.org, Andrew Morton , Uladzislau Rezki , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com, Andrey Ryabinin , Thomas Sailer , linux-hams@vger.kernel.org, "Jason A. Donenfeld" , Richard Henderson , linux-alpha@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Huacai Chen , loongarch@lists.linux.dev, Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Dinh Nguyen , Jonas Bonn , linux-openrisc@vger.kernel.org, Helge Deller , linux-parisc@vger.kernel.org, Paul Walmsley , linux-riscv@lists.infradead.org, Heiko Carstens , linux-s390@vger.kernel.org, "David S. Miller" , sparclinux@vger.kernel.org References: <20260410120044.031381086@kernel.org> <20260410120319.723429844@kernel.org> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260410120319.723429844@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260414_233839_795171_C48F38A1 X-CRM114-Status: GOOD ( 14.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Le 10/04/2026 à 14:21, Thomas Gleixner a écrit : > There is no reason to indirect via get_cycles(), which is about to be > removed. > > Use mftb() directly. > > Signed-off-by: Thomas Gleixner > Cc: Michael Ellerman > Cc: linuxppc-dev@lists.ozlabs.org Reviewed-by: Christophe Leroy (CS GROUP) > --- > arch/powerpc/platforms/cell/spufs/switch.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > --- a/arch/powerpc/platforms/cell/spufs/switch.c > +++ b/arch/powerpc/platforms/cell/spufs/switch.c > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include > > #include "spufs.h" > > @@ -279,7 +280,7 @@ static inline void save_timebase(struct > * Read PPE Timebase High and Timebase low registers > * and save in CSA. TBD. > */ > - csa->suspend_time = get_cycles(); > + csa->suspend_time = mftb(); > } > > static inline void remove_other_spu_access(struct spu_state *csa, > @@ -1261,7 +1262,7 @@ static inline void setup_decr(struct spu > * in LSCSA. > */ > if (csa->priv2.mfc_control_RW & MFC_CNTL_DECREMENTER_RUNNING) { > - cycles_t resume_time = get_cycles(); > + cycles_t resume_time = mftb(); > cycles_t delta_time = resume_time - csa->suspend_time; > > csa->lscsa->decr_status.slot[0] = SPU_DECR_STATUS_RUNNING; > >