GRU driver: minor updates
A few minor updates for the GRU driver. - documentation changes found in code reviews - changes to #ifdefs to make them recognized by "unifdef" (used in simulator testing) - change GRU context load/unload to prefetch data [akpm@linux-foundation.org: fix typo in comment] 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>
This commit is contained in:

committed by
Linus Torvalds

parent
ebf3f09c63
commit
923f7f6970
@@ -91,12 +91,7 @@
|
||||
#define GSEGPOFF(h) ((h) & (GRU_SIZE - 1))
|
||||
|
||||
/* Convert an arbitrary handle address to the beginning of the GRU segment */
|
||||
#ifndef __PLUGIN__
|
||||
#define GRUBASE(h) ((void *)((unsigned long)(h) & ~(GRU_SIZE - 1)))
|
||||
#else
|
||||
extern void *gmu_grubase(void *h);
|
||||
#define GRUBASE(h) gmu_grubase(h)
|
||||
#endif
|
||||
|
||||
/* General addressing macros. */
|
||||
static inline void *get_gseg_base_address(void *base, int ctxnum)
|
||||
|
Reference in New Issue
Block a user