Commit 57ebb034 authored by Jack Steiner's avatar Jack Steiner Committed by Linus Torvalds

gru: expicitly set instruction status to active

Explicitly set GRU instructions to "ACTIVE".  This eliminates the need for
barriers that would have been necessary to prevent reading the instruction
"status" field before the GRU had actually started the instruction.
Signed-off-by: default avatarJack Steiner <steiner@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 563447d7
This diff is collapsed.
...@@ -54,8 +54,8 @@ static void start_instruction(void *h) ...@@ -54,8 +54,8 @@ static void start_instruction(void *h)
{ {
unsigned long *w0 = h; unsigned long *w0 = h;
wmb(); /* setting CMD bit must be last */ wmb(); /* setting CMD/STATUS bits must be last */
*w0 = *w0 | 1; *w0 = *w0 | 0x20001;
gru_flush_cache(h); gru_flush_cache(h);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment