diff options
-rw-r--r-- | drivers/misc/sgi-gru/grutables.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/misc/sgi-gru/grutables.h b/drivers/misc/sgi-gru/grutables.h index 676da7821992..f0c7308a36bb 100644 --- a/drivers/misc/sgi-gru/grutables.h +++ b/drivers/misc/sgi-gru/grutables.h | |||
@@ -293,13 +293,7 @@ extern struct mcs_op_statistic mcs_op_statistics[mcsop_last]; | |||
293 | #define ASID_INC 8 /* number of regions */ | 293 | #define ASID_INC 8 /* number of regions */ |
294 | 294 | ||
295 | /* Generate a GRU asid value from a GRU base asid & a virtual address. */ | 295 | /* Generate a GRU asid value from a GRU base asid & a virtual address. */ |
296 | #if defined CONFIG_IA64 | ||
297 | #define VADDR_HI_BIT 64 | 296 | #define VADDR_HI_BIT 64 |
298 | #elif defined CONFIG_X86_64 | ||
299 | #define VADDR_HI_BIT 48 | ||
300 | #else | ||
301 | #error "Unsupported architecture" | ||
302 | #endif | ||
303 | #define GRUREGION(addr) ((addr) >> (VADDR_HI_BIT - 3) & 3) | 297 | #define GRUREGION(addr) ((addr) >> (VADDR_HI_BIT - 3) & 3) |
304 | #define GRUASID(asid, addr) ((asid) + GRUREGION(addr)) | 298 | #define GRUASID(asid, addr) ((asid) + GRUREGION(addr)) |
305 | 299 | ||