Messages in this thread Patch in this message |  | | Date | Sat, 31 May 2003 23:30:10 -0400 (EDT) | From | Zwane Mwaikambo <> | Subject | [PATCH][2.5] Honour dont_enable_local_apic flag |
| |
This flag doesn't get honoured in all cases, we still try and frob the APIC in APIC_init_uniprocessor, Tested by Brian.
Alan can i also send you a patch to disable the local apic from the kernel command line? It would be dependent on this patch.
Zwane
Index: linux-2.5/arch/i386/kernel/apic.c =================================================================== RCS file: /home/cvs/linux-2.5/arch/i386/kernel/apic.c,v retrieving revision 1.50 diff -u -p -B -r1.50 apic.c --- linux-2.5/arch/i386/kernel/apic.c 30 May 2003 20:14:41 -0000 1.50 +++ linux-2.5/arch/i386/kernel/apic.c 31 May 2003 05:53:34 -0000 @@ -665,6 +665,7 @@ static int __init detect_init_APIC (void return 0; no_apic: + dont_enable_local_apic = 1; printk("No local APIC present or hardware disabled\n"); return -1; } @@ -1127,6 +1128,9 @@ asmlinkage void smp_error_interrupt(void */ int __init APIC_init_uniprocessor (void) { + if (dont_enable_local_apic) + return -1; + if (!smp_found_config && !cpu_has_apic) return -1; -- function.linuxpower.ca - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |