diff options
| author | Vineet Gupta <vgupta@synopsys.com> | 2015-05-11 01:51:41 -0400 |
|---|---|---|
| committer | Vineet Gupta <vgupta@synopsys.com> | 2015-05-11 01:51:41 -0400 |
| commit | 4a8a224570ada27196a2529df9e3dd345239b286 (patch) | |
| tree | 2a4ba0830b5b330e5e35541bc755b845fe89180a | |
| parent | b4f006db5a72d9c14920d3eeeccd5082cf1169af (diff) | |
ARC: inline cache flush toggle helpers
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
| -rw-r--r-- | arch/arc/mm/cache_arc700.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arc/mm/cache_arc700.c b/arch/arc/mm/cache_arc700.c index 8c3a3e02ba92..12b2100db073 100644 --- a/arch/arc/mm/cache_arc700.c +++ b/arch/arc/mm/cache_arc700.c | |||
| @@ -266,7 +266,7 @@ static inline void __cache_line_loop(unsigned long paddr, unsigned long vaddr, | |||
| 266 | * Machine specific helpers for Entire D-Cache or Per Line ops | 266 | * Machine specific helpers for Entire D-Cache or Per Line ops |
| 267 | */ | 267 | */ |
| 268 | 268 | ||
| 269 | static unsigned int __before_dc_op(const int op) | 269 | static inline unsigned int __before_dc_op(const int op) |
| 270 | { | 270 | { |
| 271 | unsigned int reg = reg; | 271 | unsigned int reg = reg; |
| 272 | 272 | ||
| @@ -284,7 +284,7 @@ static unsigned int __before_dc_op(const int op) | |||
| 284 | return reg; | 284 | return reg; |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | static void __after_dc_op(const int op, unsigned int reg) | 287 | static inline void __after_dc_op(const int op, unsigned int reg) |
| 288 | { | 288 | { |
| 289 | if (op & OP_FLUSH) /* flush / flush-n-inv both wait */ | 289 | if (op & OP_FLUSH) /* flush / flush-n-inv both wait */ |
| 290 | while (read_aux_reg(ARC_REG_DC_CTRL) & DC_CTRL_FLUSH_STATUS); | 290 | while (read_aux_reg(ARC_REG_DC_CTRL) & DC_CTRL_FLUSH_STATUS); |
