gru: support contexts with zero dsrs or cbrs
authorJack Steiner <steiner@sgi.com>
Wed, 17 Jun 2009 23:28:23 +0000 (16:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:04:00 +0000 (13:04 -0700)
commit3eac2e95d7bb92222e185e445eca1fe3f695050f
tree51edba7b926d3587dfa40646bf7b453f47d26dff
parent836ce679c0b5b5040164171afc33753396864b30
gru: support contexts with zero dsrs or cbrs

Support alocation of GRU contexts that contain zero DSR or CBR resources.
Some instructions do not require DSR resources.  Contexts without CBR
resources are useful for diagnostics.

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>
drivers/misc/sgi-gru/grufile.c
drivers/misc/sgi-gru/grumain.c