]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: Use enough bits for determining page's cache color
authorVineet Gupta <vgupta@synopsys.com>
Sun, 19 May 2013 08:36:44 +0000 (14:06 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 23 May 2013 08:55:09 +0000 (14:25 +0530)
commitd507807d5018d0569e11cc2cf6a8f57308c0dabc
treed3ea1716d564a7390141f12b98c628cfe4b932eb
parent8277c27ed1cc35a48d6ac3fe64dfc9bc9025f540
ARC: Use enough bits for determining page's cache color

The current code uses 2 bits for determining page's dcache color, thus
sorting pages into 4 bins, whereas the aliasing dcache really has 2 bins
(8k page, 64k dcache - 4 way-set-assoc).
This can cause extraneous flushes - e.g. color 0 and 2.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/cacheflush.h