aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/genx2apic_uv_x.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 07:31:22 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:26 -0500
commitd4c9a9f3d416cfa1f5ffbe09d864d069467fe693 (patch)
tree647f78d7d845734fdab95c8a05a20b0a80015709 /arch/x86/kernel/genx2apic_uv_x.c
parentb0b20e5a3a6615ae750804523aeedd32911bb9d6 (diff)
x86, apic: unify phys_pkg_id()
- unify the call signature of 64-bit to that of 32-bit - clean up the types all around - clean up namespace contamination Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/genx2apic_uv_x.c')
-rw-r--r--arch/x86/kernel/genx2apic_uv_x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c
index debd721f0b4..67e7658775e 100644
--- a/arch/x86/kernel/genx2apic_uv_x.c
+++ b/arch/x86/kernel/genx2apic_uv_x.c
@@ -226,7 +226,7 @@ static unsigned int uv_read_apic_id(void)
226 return get_apic_id(apic_read(APIC_ID)); 226 return get_apic_id(apic_read(APIC_ID));
227} 227}
228 228
229static unsigned int phys_pkg_id(int index_msb) 229static int uv_phys_pkg_id(int initial_apicid, int index_msb)
230{ 230{
231 return uv_read_apic_id() >> index_msb; 231 return uv_read_apic_id() >> index_msb;
232} 232}
@@ -265,7 +265,7 @@ struct genapic apic_x2apic_uv_x = {
265 .setup_portio_remap = NULL, 265 .setup_portio_remap = NULL,
266 .check_phys_apicid_present = default_check_phys_apicid_present, 266 .check_phys_apicid_present = default_check_phys_apicid_present,
267 .enable_apic_mode = NULL, 267 .enable_apic_mode = NULL,
268 .phys_pkg_id = phys_pkg_id, 268 .phys_pkg_id = uv_phys_pkg_id,
269 .mps_oem_check = NULL, 269 .mps_oem_check = NULL,
270 270
271 .get_apic_id = get_apic_id, 271 .get_apic_id = get_apic_id,