#ifdef CONFIG_CACHE_L2X0 void __init imx_init_l2cache(void)
{ void __iomem *l2x0_base; structjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 unsignedint val;
np = of_find_compatible_node(NULL, NULL, "arm,pl310-cache"); if (!np) return;
l2x0_base = of_iomap(np, 0); if (!l2x0_base) goto put_node;
if (!(readl_relaxed(l2x0_base + L2X0_CTRL) & L2X0_CTRL_EN)) { /* Configure the L2 PREFETCH and POWER registers */
val = readl_relaxed(l2x0_base + L310_PREFETCH_CTRL);
val |= L310_PREFETCH_CTRL_DBL_LINEFILL |
L310_PREFETCH_CTRL_INSTR_PREFETCH |
L310_PREFETCH_CTRL_DATA_PREFETCH;
/* Set perfetch offset to improve performance */
val &= ~L310_PREFETCH_CTRL_OFFSET_MASK;
val |= 15;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.