diff options
Diffstat (limited to 'drivers/misc/sgi-xp/xp_sn2.c')
| -rw-r--r-- | drivers/misc/sgi-xp/xp_sn2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/sgi-xp/xp_sn2.c b/drivers/misc/sgi-xp/xp_sn2.c index baabc1cb3fee..c6a1ede7d6e6 100644 --- a/drivers/misc/sgi-xp/xp_sn2.c +++ b/drivers/misc/sgi-xp/xp_sn2.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | * Architecture specific implementation of common functions. | 12 | * Architecture specific implementation of common functions. |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| 15 | #include <linux/module.h> | ||
| 15 | #include <linux/device.h> | 16 | #include <linux/device.h> |
| 16 | #include <asm/sn/bte.h> | 17 | #include <asm/sn/bte.h> |
| 17 | #include <asm/sn/sn_sal.h> | 18 | #include <asm/sn/sn_sal.h> |
| @@ -116,14 +117,23 @@ xp_remote_memcpy_sn2(void *vdst, const void *psrc, size_t len) | |||
| 116 | return xpBteCopyError; | 117 | return xpBteCopyError; |
| 117 | } | 118 | } |
| 118 | 119 | ||
| 120 | static int | ||
| 121 | xp_cpu_to_nasid_sn2(int cpuid) | ||
| 122 | { | ||
| 123 | return cpuid_to_nasid(cpuid); | ||
| 124 | } | ||
| 125 | |||
| 119 | enum xp_retval | 126 | enum xp_retval |
| 120 | xp_init_sn2(void) | 127 | xp_init_sn2(void) |
| 121 | { | 128 | { |
| 122 | BUG_ON(!is_shub()); | 129 | BUG_ON(!is_shub()); |
| 123 | 130 | ||
| 124 | xp_max_npartitions = XP_MAX_NPARTITIONS_SN2; | 131 | xp_max_npartitions = XP_MAX_NPARTITIONS_SN2; |
| 132 | xp_partition_id = sn_partition_id; | ||
| 133 | xp_region_size = sn_region_size; | ||
| 125 | 134 | ||
| 126 | xp_remote_memcpy = xp_remote_memcpy_sn2; | 135 | xp_remote_memcpy = xp_remote_memcpy_sn2; |
| 136 | xp_cpu_to_nasid = xp_cpu_to_nasid_sn2; | ||
| 127 | 137 | ||
| 128 | return xp_register_nofault_code_sn2(); | 138 | return xp_register_nofault_code_sn2(); |
| 129 | } | 139 | } |
