diff options
Diffstat (limited to 'drivers/misc/sgi-xp/xp_uv.c')
-rw-r--r-- | drivers/misc/sgi-xp/xp_uv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/sgi-xp/xp_uv.c b/drivers/misc/sgi-xp/xp_uv.c index 44f2c2b58c2f..d9f7ce2510bc 100644 --- a/drivers/misc/sgi-xp/xp_uv.c +++ b/drivers/misc/sgi-xp/xp_uv.c | |||
@@ -42,15 +42,25 @@ xp_remote_memcpy_uv(unsigned long dst_gpa, const unsigned long src_gpa, | |||
42 | return xpGruCopyError; | 42 | return xpGruCopyError; |
43 | } | 43 | } |
44 | 44 | ||
45 | static int | ||
46 | xp_cpu_to_nasid_uv(int cpuid) | ||
47 | { | ||
48 | /* ??? Is this same as sn2 nasid in mach/part bitmaps set up by SAL? */ | ||
49 | return UV_PNODE_TO_NASID(uv_cpu_to_pnode(cpuid)); | ||
50 | } | ||
51 | |||
45 | enum xp_retval | 52 | enum xp_retval |
46 | xp_init_uv(void) | 53 | xp_init_uv(void) |
47 | { | 54 | { |
48 | BUG_ON(!is_uv()); | 55 | BUG_ON(!is_uv()); |
49 | 56 | ||
50 | xp_max_npartitions = XP_MAX_NPARTITIONS_UV; | 57 | xp_max_npartitions = XP_MAX_NPARTITIONS_UV; |
58 | xp_partition_id = 0; /* !!! not correct value */ | ||
59 | xp_region_size = 0; /* !!! not correct value */ | ||
51 | 60 | ||
52 | xp_pa = xp_pa_uv; | 61 | xp_pa = xp_pa_uv; |
53 | xp_remote_memcpy = xp_remote_memcpy_uv; | 62 | xp_remote_memcpy = xp_remote_memcpy_uv; |
63 | xp_cpu_to_nasid = xp_cpu_to_nasid_uv; | ||
54 | 64 | ||
55 | return xpSuccess; | 65 | return xpSuccess; |
56 | } | 66 | } |