mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
MIPS: cpu-probe: Set the write-combine CCA value on per core basis
Different cores use different CCA values to achieve write-combine memory writes. For cores that do not support write-combine we set the default value to CCA:2 (uncached, non-coherent) which is the default value as set by the kernel. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7402/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
80bc94d104
commit
4f12b91d2d
@@ -79,6 +79,11 @@ struct cpuinfo_mips {
|
||||
#define NUM_WATCH_REGS 4
|
||||
u16 watch_reg_masks[NUM_WATCH_REGS];
|
||||
unsigned int kscratch_mask; /* Usable KScratch mask. */
|
||||
/*
|
||||
* Cache Coherency attribute for write-combine memory writes.
|
||||
* (shifted by _CACHE_SHIFT)
|
||||
*/
|
||||
unsigned int writecombine;
|
||||
} __attribute__((aligned(SMP_CACHE_BYTES)));
|
||||
|
||||
extern struct cpuinfo_mips cpu_data[];
|
||||
|
||||
Reference in New Issue
Block a user