ARC: move common ops for line/full cache into helpers
authorVineet Gupta <vgupta@synopsys.com>
Sun, 29 Jun 2014 13:33:58 +0000 (19:03 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 23 Jul 2014 06:00:20 +0000 (11:30 +0530)
commit1b1a22b13352f6798935e01a32c18aaad4090e0a
tree5d265c568739d0fb27cd6c14a919238346f7d06f
parentda40ff48bda631b2530e561d5cc0663baae8d7de
ARC: move common ops for line/full cache into helpers

INV cmd for dcache provides 2 modes discard or wback-before-discard.
One is default and other needs to be set, if so desired. This is common
for line-op/entire-cache-op. So refactor them out into a helper

Doesn't affect generated code but paves way for any common
micro-optimization.

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