Skip to content

Commit 34e36d8

Browse files
committed
arm64: Shift the __tlbi_level() indentation left
This is for consistency with the other __tlbi macros in this file. No functional change. Signed-off-by: Catalin Marinas <[email protected]>
1 parent a7ac1cf commit 34e36d8

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

arch/arm64/include/asm/tlbflush.h

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,32 +77,31 @@
7777
#define TLBI_TTL_TG_16K 2
7878
#define TLBI_TTL_TG_64K 3
7979

80-
#define __tlbi_level(op, addr, level) \
81-
do { \
82-
u64 arg = addr; \
80+
#define __tlbi_level(op, addr, level) do { \
81+
u64 arg = addr; \
8382
\
84-
if (cpus_have_const_cap(ARM64_HAS_ARMv8_4_TTL) && \
85-
level) { \
86-
u64 ttl = level & 3; \
83+
if (cpus_have_const_cap(ARM64_HAS_ARMv8_4_TTL) && \
84+
level) { \
85+
u64 ttl = level & 3; \
8786
\
88-
switch (PAGE_SIZE) { \
89-
case SZ_4K: \
90-
ttl |= TLBI_TTL_TG_4K << 2; \
91-
break; \
92-
case SZ_16K: \
93-
ttl |= TLBI_TTL_TG_16K << 2; \
94-
break; \
95-
case SZ_64K: \
96-
ttl |= TLBI_TTL_TG_64K << 2; \
97-
break; \
98-
} \
99-
\
100-
arg &= ~TLBI_TTL_MASK; \
101-
arg |= FIELD_PREP(TLBI_TTL_MASK, ttl); \
87+
switch (PAGE_SIZE) { \
88+
case SZ_4K: \
89+
ttl |= TLBI_TTL_TG_4K << 2; \
90+
break; \
91+
case SZ_16K: \
92+
ttl |= TLBI_TTL_TG_16K << 2; \
93+
break; \
94+
case SZ_64K: \
95+
ttl |= TLBI_TTL_TG_64K << 2; \
96+
break; \
10297
} \
10398
\
104-
__tlbi(op, arg); \
105-
} while(0)
99+
arg &= ~TLBI_TTL_MASK; \
100+
arg |= FIELD_PREP(TLBI_TTL_MASK, ttl); \
101+
} \
102+
\
103+
__tlbi(op, arg); \
104+
} while(0)
106105

107106
#define __tlbi_user_level(op, arg, level) do { \
108107
if (arm64_kernel_unmapped_at_el0()) \

0 commit comments

Comments
 (0)