Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221016
b: refs/heads/master
c: 0520bd8
h: refs/heads/master
v: v3
  • Loading branch information
Russ Anderson authored and H. Peter Anvin committed Oct 29, 2010
1 parent 6cc73bc commit 76e569d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8f730b1ab825f06733e1c074264f0078721f365
refs/heads/master: 0520bd8438f18f2b1b2af5fd1c4ecc070a1bf837
7 changes: 3 additions & 4 deletions trunk/arch/x86/kernel/apic/x2apic_uv_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int early_get_nodeid(void)
return node_id.s.node_id;
}

static int __init early_get_apic_pnode_shift(void)
static void __init early_get_apic_pnode_shift(void)
{
unsigned long *mmr;

Expand All @@ -83,8 +83,6 @@ static int __init early_get_apic_pnode_shift(void)
* Old bios, use default value
*/
uvh_apicid.s.pnode_shift = UV_APIC_PNODE_SHIFT;

return uvh_apicid.s.pnode_shift;
}

static int __init uv_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
Expand All @@ -93,6 +91,7 @@ static int __init uv_acpi_madt_oem_check(char *oem_id, char *oem_table_id)

if (!strcmp(oem_id, "SGI")) {
nodeid = early_get_nodeid();
early_get_apic_pnode_shift();
x86_platform.is_untracked_pat_range = uv_is_untracked_pat_range;
x86_platform.nmi_init = uv_nmi_init;
if (!strcmp(oem_table_id, "UVL"))
Expand All @@ -101,7 +100,7 @@ static int __init uv_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
uv_system_type = UV_X2APIC;
else if (!strcmp(oem_table_id, "UVH")) {
__get_cpu_var(x2apic_extra_bits) =
nodeid << (early_get_apic_pnode_shift() - 1);
nodeid << (uvh_apicid.s.pnode_shift - 1);
uv_system_type = UV_NON_UNIQUE_APIC;
return 1;
}
Expand Down

0 comments on commit 76e569d

Please sign in to comment.