.. | .. |
---|
2 | 2 | #ifndef _ASM_IA64_UV_UV_H |
---|
3 | 3 | #define _ASM_IA64_UV_UV_H |
---|
4 | 4 | |
---|
5 | | -#include <asm/sn/simulator.h> |
---|
| 5 | +#ifdef CONFIG_IA64_SGI_UV |
---|
| 6 | +extern bool ia64_is_uv; |
---|
6 | 7 | |
---|
7 | 8 | static inline int is_uv_system(void) |
---|
8 | 9 | { |
---|
9 | | - /* temporary support for running on hardware simulator */ |
---|
10 | | - return IS_MEDUSA() || ia64_platform_is("uv"); |
---|
| 10 | + return ia64_is_uv; |
---|
11 | 11 | } |
---|
12 | 12 | |
---|
| 13 | +void __init uv_probe_system_type(void); |
---|
| 14 | +void __init uv_setup(char **cmdline_p); |
---|
| 15 | +#else /* CONFIG_IA64_SGI_UV */ |
---|
| 16 | +static inline int is_uv_system(void) |
---|
| 17 | +{ |
---|
| 18 | + return false; |
---|
| 19 | +} |
---|
| 20 | + |
---|
| 21 | +static inline void __init uv_probe_system_type(void) |
---|
| 22 | +{ |
---|
| 23 | +} |
---|
| 24 | + |
---|
| 25 | +static inline void __init uv_setup(char **cmdline_p) |
---|
| 26 | +{ |
---|
| 27 | +} |
---|
| 28 | +#endif /* CONFIG_IA64_SGI_UV */ |
---|
| 29 | + |
---|
13 | 30 | #endif /* _ASM_IA64_UV_UV_H */ |
---|