From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (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 BFCAA39023B for ; Wed, 15 Apr 2026 06:43:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=172.234.252.31 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776235413; cv=none; b=q/bgIFNTsEwIJWI7V/uamTKekdz2pnD0K55CKvZOrM/jPawYKYTB3mIwQeiId2+vOV7fk9lm39MD8HHlqgtzlG0pr3n4dQ8XrzuAtAYZmnQTvldVllOgL+y31URJjE1nc7P4+wFg3zkYZAH8SE9j7gjk+Eb+omUnpr6ZZO5vorg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776235413; c=relaxed/simple; bh=3l4dmsvsnQyxf5GbIefFkBoRTtzYmP3a/BJez1WWJU0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bn8dReG4twc6AsQK/NQLTCv39daWWGL1PKyiFy2QKWz3hGGJNNyMY7bx9XOf8sGHiwkkOTfItDFNoHjRhILTE53GQ1YntVu3agL2b8ct4tEfdbQbJY8n72Rga0iWRBZN9eSsz2NUhE2q05PRFRAWjuRMg2cc9er0HETaoni8XWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NmG1V1Qh; arc=none smtp.client-ip=172.234.252.31 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NmG1V1Qh" Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 7742F403A8; Wed, 15 Apr 2026 06:43:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DC3EC19424; Wed, 15 Apr 2026 06:43:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776235411; bh=3l4dmsvsnQyxf5GbIefFkBoRTtzYmP3a/BJez1WWJU0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NmG1V1Qh8X51h9yFFz/RGI1o84gKp7RHsiOopESELjzBD3f9G2epzFGKqLdlrBBvM 85BRNDv9YgePWTAd/mWHoOfcVqkZ9t54hSGyPy5okYzBxuCsVMlJue+y2wSJhbVhIb lb1DnIaWF178QVSBg4jx+V4/OFjaBNwtpoh3Tr4lJfjGJizmbNJlvTEiLyH2ILDjm+ 9pOpGMDHM1wUUHlqTgOAicNu6S/pI86hh/KXo0HpBVSU8mvpdrsn1yE6nfT23v28aD LJpZNPtQ4Ce9RQkXbclJOLPdj0XzY6SczhKB/CIS9XrbEQGTKPU35O7cIRgQtYcfwt Wv24vurrRB4xg== Message-ID: <0758843e-8f75-4c82-b9c0-25fab502e62f@kernel.org> Date: Wed, 15 Apr 2026 08:43:21 +0200 Precedence: bulk X-Mailing-List: linux-m68k@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [patch 07/38] treewide: Consolidate cycles_t To: Thomas Gleixner , LKML Cc: 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, Michael Ellerman , linuxppc-dev@lists.ozlabs.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> <20260410120318.045532623@kernel.org> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260410120318.045532623@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 10/04/2026 à 14:19, Thomas Gleixner a écrit : > Most architectures define cycles_t as unsigned long execpt: > > - x86 requires it to be 64-bit independent of the 32-bit/64-bit build. > > - parisc and mips define it as unsigned int > > parisc has no real reason to do so as there are only a few usage sites > which either expand it to a 64-bit value or utilize only the lower > 32bits. > > mips has no real requirement either. > > Move the typedef to types.h and provide a config switch to enforce the > 64-bit type for x86. > > Signed-off-by: Thomas Gleixner > --- > arch/Kconfig | 4 ++++ > arch/alpha/include/asm/timex.h | 3 --- > arch/arm/include/asm/timex.h | 1 - > arch/loongarch/include/asm/timex.h | 2 -- > arch/m68k/include/asm/timex.h | 2 -- > arch/mips/include/asm/timex.h | 2 -- > arch/nios2/include/asm/timex.h | 2 -- > arch/parisc/include/asm/timex.h | 2 -- > arch/powerpc/include/asm/timex.h | 4 +--- > arch/riscv/include/asm/timex.h | 2 -- > arch/s390/include/asm/timex.h | 2 -- > arch/sparc/include/asm/timex_64.h | 1 - > arch/x86/Kconfig | 1 + > arch/x86/include/asm/tsc.h | 2 -- > include/asm-generic/timex.h | 1 - > include/linux/types.h | 6 ++++++ > 16 files changed, 12 insertions(+), 25 deletions(-) > > --- a/arch/powerpc/include/asm/timex.h > +++ b/arch/powerpc/include/asm/timex.h > @@ -11,9 +11,7 @@ > #include > #include > > -typedef unsigned long cycles_t; > - > -static inline cycles_t get_cycles(void) > +ostatic inline cycles_t get_cycles(void) What is 'ostatic' ? > { > return mftb(); > }