gru: add user request to specify gru slice
[safe/jmp/linux-2.6] / drivers / misc / sgi-gru / grufault.c
index b894b7e..1ad360c 100644 (file)
@@ -769,6 +769,10 @@ int gru_set_context_option(unsigned long arg)
                /* Register the current task as the GSEG owner */
                gts->ts_tgid_owner = current->tgid;
                break;
+       case sco_cch_req_slice:
+               /* Set the CCH slice option */
+               gts->ts_cch_req_slice = req.val1 & 3;
+               break;
        default:
                ret = -EINVAL;
        }