diff options
Diffstat (limited to 'drivers/misc/sgi-xp')
| -rw-r--r-- | drivers/misc/sgi-xp/xp.h | 24 | ||||
| -rw-r--r-- | drivers/misc/sgi-xp/xpc_main.c | 2 |
2 files changed, 11 insertions, 15 deletions
diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h index 7b4cbd5e03e9..2275126cb334 100644 --- a/drivers/misc/sgi-xp/xp.h +++ b/drivers/misc/sgi-xp/xp.h | |||
| @@ -15,19 +15,19 @@ | |||
| 15 | 15 | ||
| 16 | #include <linux/mutex.h> | 16 | #include <linux/mutex.h> |
| 17 | 17 | ||
| 18 | #ifdef CONFIG_IA64 | 18 | #if defined CONFIG_X86_UV || defined CONFIG_IA64_SGI_UV |
| 19 | #include <asm/uv/uv.h> | ||
| 20 | #define is_uv() is_uv_system() | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #ifndef is_uv | ||
| 24 | #define is_uv() 0 | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #if defined CONFIG_IA64 | ||
| 19 | #include <asm/system.h> | 28 | #include <asm/system.h> |
| 20 | #include <asm/sn/arch.h> /* defines is_shub1() and is_shub2() */ | 29 | #include <asm/sn/arch.h> /* defines is_shub1() and is_shub2() */ |
| 21 | #define is_shub() ia64_platform_is("sn2") | 30 | #define is_shub() ia64_platform_is("sn2") |
| 22 | #ifdef CONFIG_IA64_SGI_UV | ||
| 23 | #define is_uv() ia64_platform_is("uv") | ||
| 24 | #else | ||
| 25 | #define is_uv() 0 | ||
| 26 | #endif | ||
| 27 | #endif | ||
| 28 | #ifdef CONFIG_X86_64 | ||
| 29 | #include <asm/genapic.h> | ||
| 30 | #define is_uv() is_uv_system() | ||
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||
| 33 | #ifndef is_shub1 | 33 | #ifndef is_shub1 |
| @@ -42,10 +42,6 @@ | |||
| 42 | #define is_shub() 0 | 42 | #define is_shub() 0 |
| 43 | #endif | 43 | #endif |
| 44 | 44 | ||
| 45 | #ifndef is_uv | ||
| 46 | #define is_uv() 0 | ||
| 47 | #endif | ||
| 48 | |||
| 49 | #ifdef USE_DBUG_ON | 45 | #ifdef USE_DBUG_ON |
| 50 | #define DBUG_ON(condition) BUG_ON(condition) | 46 | #define DBUG_ON(condition) BUG_ON(condition) |
| 51 | #else | 47 | #else |
diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c index 89218f7cfaa7..6576170de962 100644 --- a/drivers/misc/sgi-xp/xpc_main.c +++ b/drivers/misc/sgi-xp/xpc_main.c | |||
| @@ -318,7 +318,7 @@ xpc_hb_checker(void *ignore) | |||
| 318 | 318 | ||
| 319 | /* this thread was marked active by xpc_hb_init() */ | 319 | /* this thread was marked active by xpc_hb_init() */ |
| 320 | 320 | ||
| 321 | set_cpus_allowed_ptr(current, &cpumask_of_cpu(XPC_HB_CHECK_CPU)); | 321 | set_cpus_allowed_ptr(current, cpumask_of(XPC_HB_CHECK_CPU)); |
| 322 | 322 | ||
| 323 | /* set our heartbeating to other partitions into motion */ | 323 | /* set our heartbeating to other partitions into motion */ |
| 324 | xpc_hb_check_timeout = jiffies + (xpc_hb_check_interval * HZ); | 324 | xpc_hb_check_timeout = jiffies + (xpc_hb_check_interval * HZ); |
