瀏覽代碼

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>
Dean Nelson 17 年之前
父節點
當前提交
355c54d2e7
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      drivers/misc/sgi-xp/xp.h

+ 16 - 0
drivers/misc/sgi-xp/xp.h

@@ -25,6 +25,22 @@
 #define DBUG_ON(condition)
 #define DBUG_ON(condition)
 #endif
 #endif
 
 
+#ifndef is_shub1
+#define is_shub1()	0
+#endif
+
+#ifndef is_shub2
+#define is_shub2()	0
+#endif
+
+#ifndef is_shub
+#define is_shub()	(is_shub1() || is_shub2())
+#endif
+
+#ifndef is_uv
+#define is_uv()		0
+#endif
+
 /*
 /*
  * Define the maximum number of logically defined partitions the system
  * Define the maximum number of logically defined partitions the system
  * can support. It is constrained by the maximum number of hardware
  * can support. It is constrained by the maximum number of hardware