]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: cacheflush refactor #1: push aux reg ascertaining into leaf routine
authorVineet Gupta <vgupta@synopsys.com>
Thu, 5 Sep 2013 07:33:35 +0000 (13:03 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 6 Nov 2013 05:11:29 +0000 (10:41 +0530)
commit64a3deceb3af606b586088658f9b35ef56997a17
tree15ff0625f7848aac0b8d436f497a17a5fd5a4144
parent7a12de5722d15d3139f122e4a536a3ff911f97f6
ARC: cacheflush refactor #1: push aux reg ascertaining into leaf routine

ARC dcache supports 3 ops - Inv, Flush, Flush-n-Inv.
The programming model however provides 2 commands FLUSH, INV.
INV will either discard or flush-n-discard (based on DT_CTRL bit)

The leaf helper __dc_line_loop() used to take the AUX register
(corresponding to the 2 commands). Now we push that to within the
helper, paving way for code consolidations to follow.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/cache_arc700.c