aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grutables.h
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-06-17 19:28:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-18 16:03:59 -0400
commit364b76df80f62cee1b66e871df2f69db6e3d3d9e (patch)
tree7289e8489a7b4d5441a867be44ad152088517450 /drivers/misc/sgi-gru/grutables.h
parent9cc9b056ea51608788609d7e26c7db55ef81bb2e (diff)
gru: dynamic allocation of kernel contexts
Change the interface to gru_alloc_gts() so that it can be used to allocate GRU contexts for kernel threads. Kernel threads do not have vdata structures for the GRU contexts. The GRU resource count are now passed explicitly instead of inside the vdata structure. 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/grutables.h')
-rw-r--r--drivers/misc/sgi-gru/grutables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grutables.h b/drivers/misc/sgi-gru/grutables.h
index d768f54dc259..c69086c9b986 100644
--- a/drivers/misc/sgi-gru/grutables.h
+++ b/drivers/misc/sgi-gru/grutables.h
@@ -630,6 +630,8 @@ extern void gru_flush_all_tlb(struct gru_state *gru);
630extern int gru_proc_init(void); 630extern int gru_proc_init(void);
631extern void gru_proc_exit(void); 631extern void gru_proc_exit(void);
632 632
633extern struct gru_thread_state *gru_alloc_gts(struct vm_area_struct *vma,
634 int cbr_au_count, int dsr_au_count, int options, int tsid);
633extern unsigned long gru_reserve_cb_resources(struct gru_state *gru, 635extern unsigned long gru_reserve_cb_resources(struct gru_state *gru,
634 int cbr_au_count, char *cbmap); 636 int cbr_au_count, char *cbmap);
635extern unsigned long gru_reserve_ds_resources(struct gru_state *gru, 637extern unsigned long gru_reserve_ds_resources(struct gru_state *gru,