]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: l2c: avoid passing auxiliary control register through enable method
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 May 2015 11:03:29 +0000 (12:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 May 2015 19:30:54 +0000 (20:30 +0100)
commitc849828b3b9dd97b87d156dedd822753c8286391
treedad4dffa4712713bc97b627362b47666f539c3c5
parent8d1e44ca207be010f772159e209457b40f8fff8a
ARM: l2c: avoid passing auxiliary control register through enable method

Avoid passing the auxiliary control register value through the enable
method.  In the resume path, we have to read the value stored in
l2x0_saved_regs.aux_ctrl, only to have it immediately written back by
l2c_enable().  We can avoid this if we have __l2c_init() save the value
directly to l2x0_saved_regs.aux_ctrl before calling the specific enable
method.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c