* Copyright (C) 1999,2001-2006 Silicon Graphics, Inc. All rights reserved.
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/kdev_t.h>
#include <linux/string.h>
-#include <linux/screen_info.h>
+#include <linux/tty.h>
#include <linux/console.h>
#include <linux/timex.h>
#include <linux/sched.h>
int i;
int nid;
- nid = pxm_to_node(pxm);
+ nid = pxm_to_nid_map[pxm];
for (i = 0; i < num_node_memblks; i++) {
if (node_memblk[i].nid == nid) {
return NASID_GET(node_memblk[i].start_paddr);
* support here so we don't have to listen to failed keyboard probe
* messages.
*/
- if (is_shub1() && version <= 0x0209 && acpi_kbd_controller_present) {
+ if (version <= 0x0209 && acpi_kbd_controller_present) {
printk(KERN_INFO "Disabling legacy keyboard support as prom "
"is too old and doesn't provide FADT\n");
acpi_kbd_controller_present = 0;
* Also sets up a few fields in the nodepda. Also known as
* platform_cpu_init() by the ia64 machvec code.
*/
-void __cpuinit sn_cpu_init(void)
+void __init sn_cpu_init(void)
{
int cpuid;
int cpuphyid;
int i;
static int wars_have_been_checked;
- cpuid = smp_processor_id();
- if (cpuid == 0 && IS_MEDUSA()) {
+ if (smp_processor_id() == 0 && IS_MEDUSA()) {
if (ia64_sn_is_fake_prom())
sn_prom_type = 2;
else
BUG();
sn_hub_info->as_shift = sn_hub_info->nasid_shift - 2;
- /*
- * Don't check status. The SAL call is not supported on all PROMs
- * but a failure is harmless.
- */
- (void) ia64_sn_set_cpu_number(cpuid);
-
/*
* The boot cpu makes this call again after platform initialization is
* complete.
if (ia64_sn_get_prom_feature_set(i, &sn_prom_features[i]) != 0)
break;
+ cpuid = smp_processor_id();
cpuphyid = get_sapicid();
if (ia64_sn_get_sapic_info(cpuphyid, &nasid, &subnode, &slice))
* cnode == node for all C & M bricks.
*/
for_each_online_node(node) {
- nasid = pxm_to_nasid(node_to_pxm(node));
+ nasid = pxm_to_nasid(nid_to_pxm_map[node]);
sn_cnodeid_to_nasid[node] = nasid;
physical_node_map[nasid] = node;
}