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/grulib.h | |
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/grulib.h')
-rw-r--r-- | drivers/misc/sgi-gru/grulib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grulib.h b/drivers/misc/sgi-gru/grulib.h index 6ab872665e7f..87586551d16f 100644 --- a/drivers/misc/sgi-gru/grulib.h +++ b/drivers/misc/sgi-gru/grulib.h | |||
@@ -56,6 +56,9 @@ | |||
56 | /* Get some config options (primarily for tests & emulator) */ | 56 | /* Get some config options (primarily for tests & emulator) */ |
57 | #define GRU_GET_CONFIG_INFO _IOWR(GRU_IOCTL_NUM, 51, void *) | 57 | #define GRU_GET_CONFIG_INFO _IOWR(GRU_IOCTL_NUM, 51, void *) |
58 | 58 | ||
59 | /* Various kernel self-tests */ | ||
60 | #define GRU_KTEST _IOWR(GRU_IOCTL_NUM, 52, void *) | ||
61 | |||
59 | #define CONTEXT_WINDOW_BYTES(th) (GRU_GSEG_PAGESIZE * (th)) | 62 | #define CONTEXT_WINDOW_BYTES(th) (GRU_GSEG_PAGESIZE * (th)) |
60 | #define THREAD_POINTER(p, th) (p + GRU_GSEG_PAGESIZE * (th)) | 63 | #define THREAD_POINTER(p, th) (p + GRU_GSEG_PAGESIZE * (th)) |
61 | 64 | ||