mirror of
https://github.com/torvalds/linux
synced 2024-11-03 01:56:01 +00:00
ARC: inline cache flush toggle helpers
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
b4f006db5a
commit
4a8a224570
1 changed files with 2 additions and 2 deletions
|
@ -266,7 +266,7 @@ static inline void __cache_line_loop(unsigned long paddr, unsigned long vaddr,
|
||||||
* Machine specific helpers for Entire D-Cache or Per Line ops
|
* Machine specific helpers for Entire D-Cache or Per Line ops
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static unsigned int __before_dc_op(const int op)
|
static inline unsigned int __before_dc_op(const int op)
|
||||||
{
|
{
|
||||||
unsigned int reg = reg;
|
unsigned int reg = reg;
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ static unsigned int __before_dc_op(const int op)
|
||||||
return reg;
|
return reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __after_dc_op(const int op, unsigned int reg)
|
static inline void __after_dc_op(const int op, unsigned int reg)
|
||||||
{
|
{
|
||||||
if (op & OP_FLUSH) /* flush / flush-n-inv both wait */
|
if (op & OP_FLUSH) /* flush / flush-n-inv both wait */
|
||||||
while (read_aux_reg(ARC_REG_DC_CTRL) & DC_CTRL_FLUSH_STATUS);
|
while (read_aux_reg(ARC_REG_DC_CTRL) & DC_CTRL_FLUSH_STATUS);
|
||||||
|
|
Loading…
Reference in a new issue