aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grutables.h
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-06-17 19:28:24 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-18 16:04:00 -0400
commit940229b9c0dcd9b6e1d64d0d26eba00238ddae98 (patch)
tree62df332cc772d692af3bce50de8b9210dafead3d /drivers/misc/sgi-gru/grutables.h
parent17b49a67a6a59f0e9f3c22e67ddb602410e8e182 (diff)
gru: check context state on reload
Check whether the gru state being loaded into a gru is from a new context or a previously unloaded context. If new, simply zero out the hardware context; if unloaded and valid, reload the old state. This change is primarily for reloading kernel contexts where the previous is not required to be saved. Signed-off-by: Jack Steiner <steiner@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru/grutables.h')
-rw-r--r--drivers/misc/sgi-gru/grutables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grutables.h b/drivers/misc/sgi-gru/grutables.h
index 1c85fdcf5d37..5f8f3bda2fa9 100644
--- a/drivers/misc/sgi-gru/grutables.h
+++ b/drivers/misc/sgi-gru/grutables.h
@@ -385,6 +385,8 @@ struct gru_thread_state {
385 after migration */ 385 after migration */
386 char ts_cbr_idx[GRU_CBR_AU];/* CBR numbers of each 386 char ts_cbr_idx[GRU_CBR_AU];/* CBR numbers of each
387 allocated CB */ 387 allocated CB */
388 int ts_data_valid; /* Indicates if ts_gdata has
389 valid data */
388 unsigned long ts_gdata[0]; /* save area for GRU data (CB, 390 unsigned long ts_gdata[0]; /* save area for GRU data (CB,
389 DS, CBE) */ 391 DS, CBE) */
390}; 392};