[PATCH v2 01/13] arm64: mm: Re-implement the __tlbi_level macro as a C function

Jonathan Cameron jonathan.cameron at huawei.com
Tue Jan 27 03:12:42 PST 2026


On Mon, 19 Jan 2026 17:21:48 +0000
Ryan Roberts <ryan.roberts at arm.com> wrote:

> As part of efforts to reduce our reliance on complex preprocessor macros
> for TLB invalidation routines, convert the __tlbi_level macro to a C
> function for by-level TLB invalidation.
> 
> Each specific tlbi level op is implemented as a C function and the
> appropriate function pointer is passed to __tlbi_level(). Since
> everything is declared inline and is statically resolvable, the compiler
> will convert the indirect function call to a direct inline execution.
> 
> Suggested-by: Linus Torvalds <torvalds at linux-foundation.org>
> Signed-off-by: Ryan Roberts <ryan.roberts at arm.com>

Does what it says on the tin.

Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>




More information about the linux-arm-kernel mailing list