Commit f1f351e0 authored by Seth Rohit's avatar Seth Rohit Committed by David Mosberger

[PATCH] ia64: nointroute option needs to be parsed early

This patch does an early parsing of kernel command line to check if
no_int_route is present. Sal_init code depends on this option to
enable/disable interrupt routing.
Signed-off-by: default avatarRohit Seth <rohit.seth@intel.com>
Signed-off-by: default avatarDavid Mosberger <davidm@hpl.hp.com>
parent 3dd84e98
...@@ -188,6 +188,27 @@ sal_desc_ap_wakeup (void *p) ...@@ -188,6 +188,27 @@ sal_desc_ap_wakeup (void *p)
break; break;
} }
} }
static void __init
chk_nointroute_opt(void)
{
char *cp;
extern char saved_command_line[];
for (cp = saved_command_line; *cp; ) {
if (memcmp(cp, "nointroute", 10) == 0) {
no_int_routing = 1;
printk ("no_int_routing on\n");
break;
} else {
while (*cp != ' ' && *cp)
++cp;
while (*cp == ' ')
++cp;
}
}
}
#else #else
static void __init sal_desc_ap_wakeup(void *p) { } static void __init sal_desc_ap_wakeup(void *p) { }
#endif #endif
...@@ -207,6 +228,9 @@ ia64_sal_init (struct ia64_sal_systab *systab) ...@@ -207,6 +228,9 @@ ia64_sal_init (struct ia64_sal_systab *systab)
printk(KERN_ERR "bad signature in system table!"); printk(KERN_ERR "bad signature in system table!");
check_versions(systab); check_versions(systab);
#ifdef CONFIG_SMP
chk_nointroute_opt();
#endif
/* revisions are coded in BCD, so %x does the job for us */ /* revisions are coded in BCD, so %x does the job for us */
printk(KERN_INFO "SAL %x.%x: %.32s %.32s%sversion %x.%x\n", printk(KERN_INFO "SAL %x.%x: %.32s %.32s%sversion %x.%x\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment