aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grumain.c
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-06-17 19:28:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-18 16:04:00 -0400
commit4a7a17c1188a878e9f00e4ca8dc724c7cff17606 (patch)
treee7c728b3031534620fbb01ab0ae059ae28fd5f89 /drivers/misc/sgi-gru/grumain.c
parent940229b9c0dcd9b6e1d64d0d26eba00238ddae98 (diff)
gru: support instruction completion interrupts
Add support for interrupts generated by GRU instruction completion. Previously, the only interrupts were for TLB misses. The hardware also supports interrupts on instruction completion. This will be supported for instructions issued by the kernel. 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/grumain.c')
-rw-r--r--drivers/misc/sgi-gru/grumain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grumain.c b/drivers/misc/sgi-gru/grumain.c
index afc4c473c794..e38a0f1775ff 100644
--- a/drivers/misc/sgi-gru/grumain.c
+++ b/drivers/misc/sgi-gru/grumain.c
@@ -572,8 +572,12 @@ void gru_load_context(struct gru_thread_state *gts)
572 572
573 if (is_kernel_context(gts)) { 573 if (is_kernel_context(gts)) {
574 cch->unmap_enable = 1; 574 cch->unmap_enable = 1;
575 cch->tfm_done_bit_enable = 1;
576 cch->cb_int_enable = 1;
575 } else { 577 } else {
576 cch->unmap_enable = 0; 578 cch->unmap_enable = 0;
579 cch->tfm_done_bit_enable = 0;
580 cch->cb_int_enable = 0;
577 asid = gru_load_mm_tracker(gru, gts); 581 asid = gru_load_mm_tracker(gru, gts);
578 for (i = 0; i < 8; i++) { 582 for (i = 0; i < 8; i++) {
579 cch->asid[i] = asid + i; 583 cch->asid[i] = asid + i;