Skip to content

Commit 21da533

Browse files
mpredfearnralfbaechle
authored andcommitted
MIPS: Introduce cpu_tcache_line_size
There exist macros to return the cache line size of the L1 dcache and L2 scache but there is currently no macro for the L3 tcache. Add this macro which will be used by the following patch "MIPS: PCI: Fix smp_processor_id() in preemptible" Signed-off-by: Matt Redfearn <[email protected]> Cc: Maciej W. Rozycki <[email protected]> Cc: James Hogan <[email protected]> Cc: Paul Burton <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/16871/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent 68fe556 commit 21da533

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/mips/include/asm/cpu-features.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@
428428
#ifndef cpu_scache_line_size
429429
#define cpu_scache_line_size() cpu_data[0].scache.linesz
430430
#endif
431+
#ifndef cpu_tcache_line_size
432+
#define cpu_tcache_line_size() cpu_data[0].tcache.linesz
433+
#endif
431434

432435
#ifndef cpu_hwrena_impl_bits
433436
#define cpu_hwrena_impl_bits 0

0 commit comments

Comments
 (0)