aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xp.h
diff options
context:
space:
mode:
authorDean Nelson <dcn@sgi.com>2008-07-30 01:34:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-30 12:41:48 -0400
commit355c54d2e70093f09910d2ecf343023aefc219e1 (patch)
tree8352cbd64791187614de56f5101e11ab27be4673 /drivers/misc/sgi-xp/xp.h
parent9ca8e40c130c906c1060d105e63628410c860261 (diff)
sgi-xp: define is_shub() and is_uv() macros
Define the is_shub()/is_uv() macros if they've not already been defined. Signed-off-by: Dean Nelson <dcn@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-xp/xp.h')
-rw-r--r--drivers/misc/sgi-xp/xp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h
index 03a87a307e32..83627eac4128 100644
--- a/drivers/misc/sgi-xp/xp.h
+++ b/drivers/misc/sgi-xp/xp.h
@@ -25,6 +25,22 @@
25#define DBUG_ON(condition) 25#define DBUG_ON(condition)
26#endif 26#endif
27 27
28#ifndef is_shub1
29#define is_shub1() 0
30#endif
31
32#ifndef is_shub2
33#define is_shub2() 0
34#endif
35
36#ifndef is_shub
37#define is_shub() (is_shub1() || is_shub2())
38#endif
39
40#ifndef is_uv
41#define is_uv() 0
42#endif
43
28/* 44/*
29 * Define the maximum number of logically defined partitions the system 45 * Define the maximum number of logically defined partitions the system
30 * can support. It is constrained by the maximum number of hardware 46 * can support. It is constrained by the maximum number of hardware