aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grumain.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-gru/grumain.c')
-rw-r--r--drivers/misc/sgi-gru/grumain.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grumain.c b/drivers/misc/sgi-gru/grumain.c
index 347004e4f591..0c20be007b20 100644
--- a/drivers/misc/sgi-gru/grumain.c
+++ b/drivers/misc/sgi-gru/grumain.c
@@ -321,6 +321,7 @@ struct gru_thread_state *gru_alloc_gts(struct vm_area_struct *vma,
321 gts->ts_tsid = tsid; 321 gts->ts_tsid = tsid;
322 gts->ts_ctxnum = NULLCTX; 322 gts->ts_ctxnum = NULLCTX;
323 gts->ts_tlb_int_select = -1; 323 gts->ts_tlb_int_select = -1;
324 gts->ts_cch_req_slice = -1;
324 gts->ts_sizeavail = GRU_SIZEAVAIL(PAGE_SHIFT); 325 gts->ts_sizeavail = GRU_SIZEAVAIL(PAGE_SHIFT);
325 if (vma) { 326 if (vma) {
326 gts->ts_mm = current->mm; 327 gts->ts_mm = current->mm;
@@ -566,6 +567,12 @@ void gru_load_context(struct gru_thread_state *gts)
566 gts->ts_tlb_int_select = gru_cpu_fault_map_id(); 567 gts->ts_tlb_int_select = gru_cpu_fault_map_id();
567 cch->tlb_int_select = gts->ts_tlb_int_select; 568 cch->tlb_int_select = gts->ts_tlb_int_select;
568 } 569 }
570 if (gts->ts_cch_req_slice >= 0) {
571 cch->req_slice_set_enable = 1;
572 cch->req_slice = gts->ts_cch_req_slice;
573 } else {
574 cch->req_slice_set_enable =0;
575 }
569 cch->tfm_done_bit_enable = 0; 576 cch->tfm_done_bit_enable = 0;
570 cch->dsr_allocation_map = gts->ts_dsr_map; 577 cch->dsr_allocation_map = gts->ts_dsr_map;
571 cch->cbr_allocation_map = gts->ts_cbr_map; 578 cch->cbr_allocation_map = gts->ts_cbr_map;