diff options
Diffstat (limited to 'drivers/misc/sgi-gru/grufault.c')
-rw-r--r-- | drivers/misc/sgi-gru/grufault.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c index 679e01778286..2605edfbaebe 100644 --- a/drivers/misc/sgi-gru/grufault.c +++ b/drivers/misc/sgi-gru/grufault.c | |||
@@ -733,6 +733,11 @@ long gru_get_gseg_statistics(unsigned long arg) | |||
733 | if (copy_from_user(&req, (void __user *)arg, sizeof(req))) | 733 | if (copy_from_user(&req, (void __user *)arg, sizeof(req))) |
734 | return -EFAULT; | 734 | return -EFAULT; |
735 | 735 | ||
736 | /* | ||
737 | * The library creates arrays of contexts for threaded programs. | ||
738 | * If no gts exists in the array, the context has never been used & all | ||
739 | * statistics are implicitly 0. | ||
740 | */ | ||
736 | gts = gru_find_lock_gts(req.gseg); | 741 | gts = gru_find_lock_gts(req.gseg); |
737 | if (gts) { | 742 | if (gts) { |
738 | memcpy(&req.stats, >s->ustats, sizeof(gts->ustats)); | 743 | memcpy(&req.stats, >s->ustats, sizeof(gts->ustats)); |