diff options
author | Jack Steiner <steiner@sgi.com> | 2009-06-17 19:28:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:04:02 -0400 |
commit | eb5bd5e52a8eafb1ddb42f983d41f97552afa106 (patch) | |
tree | e23bb25f5f6530bf6adc6cabdf3642d9611cfc00 /drivers/misc/sgi-gru/grufile.c | |
parent | 9120dec47f150636d85b3dba03318ccecd181c79 (diff) |
gru: update gru kernel self tests
Change the kernel self tests that can be optionally executed on GRU
initialization. This is primarily for testing.
Eliminate the BUG statements on failure and return bad status. Add ioctl
interface to execute the tests on demand.
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/grufile.c')
-rw-r--r-- | drivers/misc/sgi-gru/grufile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grufile.c b/drivers/misc/sgi-gru/grufile.c index b1567ce868e9..796ac704795e 100644 --- a/drivers/misc/sgi-gru/grufile.c +++ b/drivers/misc/sgi-gru/grufile.c | |||
@@ -250,6 +250,9 @@ static long gru_file_unlocked_ioctl(struct file *file, unsigned int req, | |||
250 | case GRU_USER_CALL_OS: | 250 | case GRU_USER_CALL_OS: |
251 | err = gru_handle_user_call_os(arg); | 251 | err = gru_handle_user_call_os(arg); |
252 | break; | 252 | break; |
253 | case GRU_KTEST: | ||
254 | err = gru_ktest(arg); | ||
255 | break; | ||
253 | case GRU_GET_CONFIG_INFO: | 256 | case GRU_GET_CONFIG_INFO: |
254 | err = gru_get_config_info(arg); | 257 | err = gru_get_config_info(arg); |
255 | break; | 258 | break; |