aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grufault.c
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-06-17 19:28:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-18 16:03:59 -0400
commitd57c82b10709bbb1deb7eb26cf42abcde8851e4d (patch)
tree6e7e2a9e9e9254cfe63e94b8ee14cd1250324160 /drivers/misc/sgi-gru/grufault.c
parent364b76df80f62cee1b66e871df2f69db6e3d3d9e (diff)
gru: change context load and unload
Remove "static" from the functions for loading/unloading GRU contexts. These functions will be called from other GRU files. Fix bug in unlocking gru context. 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/grufault.c')
-rw-r--r--drivers/misc/sgi-gru/grufault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c
index 4089f862aa29..f15152165a99 100644
--- a/drivers/misc/sgi-gru/grufault.c
+++ b/drivers/misc/sgi-gru/grufault.c
@@ -558,8 +558,8 @@ int gru_handle_user_call_os(unsigned long cb)
558 * CCH may contain stale data if ts_force_cch_reload is set. 558 * CCH may contain stale data if ts_force_cch_reload is set.
559 */ 559 */
560 if (gts->ts_gru && gts->ts_force_cch_reload) { 560 if (gts->ts_gru && gts->ts_force_cch_reload) {
561 gru_update_cch(gts, 0);
562 gts->ts_force_cch_reload = 0; 561 gts->ts_force_cch_reload = 0;
562 gru_update_cch(gts, 0);
563 } 563 }
564 564
565 ret = -EAGAIN; 565 ret = -EAGAIN;
@@ -644,7 +644,7 @@ static int gru_unload_all_contexts(void)
644 if (gts && mutex_trylock(&gts->ts_ctxlock)) { 644 if (gts && mutex_trylock(&gts->ts_ctxlock)) {
645 spin_unlock(&gru->gs_lock); 645 spin_unlock(&gru->gs_lock);
646 gru_unload_context(gts, 1); 646 gru_unload_context(gts, 1);
647 gru_unlock_gts(gts); 647 mutex_unlock(&gts->ts_ctxlock);
648 spin_lock(&gru->gs_lock); 648 spin_lock(&gru->gs_lock);
649 } 649 }
650 } 650 }