diff options
author | Jack Steiner <steiner@sgi.com> | 2009-06-17 19:28:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:03:59 -0400 |
commit | 6e9100741ca430eeef8022794f8b62a23a5916af (patch) | |
tree | 4c19d2cbbd2d3f1cd429946120c078b653ae67b3 /drivers/misc/sgi-gru/gruhandles.h | |
parent | d57c82b10709bbb1deb7eb26cf42abcde8851e4d (diff) |
gru: support cch_allocate for kernel threads
Change the interface to cch_allocate so that it can be used to allocate
GRU contexts for kernel threads. Kernel threads use the GRU in unmapped
mode and do not require ASIDs for the GRU TLB.
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/gruhandles.h')
-rw-r--r-- | drivers/misc/sgi-gru/gruhandles.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/misc/sgi-gru/gruhandles.h b/drivers/misc/sgi-gru/gruhandles.h index 03b76a1993c3..9f41e2cc09d5 100644 --- a/drivers/misc/sgi-gru/gruhandles.h +++ b/drivers/misc/sgi-gru/gruhandles.h | |||
@@ -480,9 +480,7 @@ enum gru_cbr_state { | |||
480 | /* minimum TLB purge count to ensure a full purge */ | 480 | /* minimum TLB purge count to ensure a full purge */ |
481 | #define GRUMAXINVAL 1024UL | 481 | #define GRUMAXINVAL 1024UL |
482 | 482 | ||
483 | int cch_allocate(struct gru_context_configuration_handle *cch, | 483 | int cch_allocate(struct gru_context_configuration_handle *cch); |
484 | int asidval, int sizeavail, unsigned long cbrmap, unsigned long dsrmap); | ||
485 | |||
486 | int cch_start(struct gru_context_configuration_handle *cch); | 484 | int cch_start(struct gru_context_configuration_handle *cch); |
487 | int cch_interrupt(struct gru_context_configuration_handle *cch); | 485 | int cch_interrupt(struct gru_context_configuration_handle *cch); |
488 | int cch_deallocate(struct gru_context_configuration_handle *cch); | 486 | int cch_deallocate(struct gru_context_configuration_handle *cch); |