aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grufault.c
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-06-17 19:28:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-18 16:04:04 -0400
commitb1b19fcfa417cf62447413d6e8b9b6598adf00b9 (patch)
tree843b78d76879848fa8907ce24662ecc568012219 /drivers/misc/sgi-gru/grufault.c
parent92b39388eeb45326feb0fa8bd69dbbce66c9efbf (diff)
gru: add user request to specify gru slice
Add a user request to specify the gru instruction slice parameter for user contexts. 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, 4 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c
index b894b7ed9c35..1ad360cd3183 100644
--- a/drivers/misc/sgi-gru/grufault.c
+++ b/drivers/misc/sgi-gru/grufault.c
@@ -769,6 +769,10 @@ int gru_set_context_option(unsigned long arg)
769 /* Register the current task as the GSEG owner */ 769 /* Register the current task as the GSEG owner */
770 gts->ts_tgid_owner = current->tgid; 770 gts->ts_tgid_owner = current->tgid;
771 break; 771 break;
772 case sco_cch_req_slice:
773 /* Set the CCH slice option */
774 gts->ts_cch_req_slice = req.val1 & 3;
775 break;
772 default: 776 default:
773 ret = -EINVAL; 777 ret = -EINVAL;
774 } 778 }