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)
commitf3e4de327403cee6f76c0dca1b45d6fb0b08daf4
tree15ff0625f7848aac0b8d436f497a17a5fd5a4144
parent064a6269245655b15054ad9783bca9bfd8dc1f9e
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