]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
gru: support 64-bit GRU addresses
authorJack Steiner <steiner@sgi.com>
Wed, 16 Dec 2009 00:48:07 +0000 (16:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:15 +0000 (07:20 -0800)
Increase the maximum address supported by the SGI GRU driver to a full 64
bits.  Note that GRU addresses are not always the same as socket virtual
addresses.  Sockets may not necessarily support the full 64 bits.

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/grutables.h

index 676da7821992c9d12520401db2a708cdd756a3f7..f0c7308a36bbd52ae8331b17ed27e6ab67509f4e 100644 (file)
@@ -293,13 +293,7 @@ extern struct mcs_op_statistic mcs_op_statistics[mcsop_last];
 #define ASID_INC       8       /* number of regions */
 
 /* Generate a GRU asid value from a GRU base asid & a virtual address. */
-#if defined CONFIG_IA64
 #define VADDR_HI_BIT           64
-#elif defined CONFIG_X86_64
-#define VADDR_HI_BIT           48
-#else
-#error "Unsupported architecture"
-#endif
 #define GRUREGION(addr)                ((addr) >> (VADDR_HI_BIT - 3) & 3)
 #define GRUASID(asid, addr)    ((asid) + GRUREGION(addr))