Re: [PATCH] x86: read apic id if it is not acpi_lapic -v2

From: Ingo Molnar
Date: Mon May 11 2009 - 05:20:59 EST



* Yinghai Lu <yinghai@xxxxxxxxxx> wrote:

> + new_apicid = read_apic_id();
> + if (boot_cpu_physical_apicid != new_apicid) {
> + boot_cpu_physical_apicid = new_apicid;
> + apic_version[new_apicid] =
> + GET_APIC_VERSION(apic_read(APIC_LVR));
> }

_Please_, when we override something as critical as this and change
the behavior of Linux (even if it's arguably a fix), we must printk
a single line to the syslog so that people know what's going on.

You really need to make a conscious mental distinction between
'dangerous' code and harmless changes, and apply a lot more
conservative approach when you meet and touch (and introduce ...)
dangerous code.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/