Re: [patch 4/4] x86: apic_is_clustered_box to indicate unsynchedTSC's on multiboard vSMP systems

From: Ingo Molnar
Date: Fri Mar 21 2008 - 14:58:55 EST



* Ravikiran G Thirumalai <kiran@xxxxxxxxxxxx> wrote:

> As for the observation about probing the pci space early during the
> bootup, we call vsmp_init() much earlier during the bootup, which
> calls is_vsmp_box(), does the pci probing and caches the result in the
> flag, as you suggest. So the call in the above diff context does not
> access the pci config space as is.

ah, i see - indeed - the trick with -1 :-)

my point remains though: if you initialize VSMP in a separate function
anyway then please move this PCI config space access from is_vsmp_box()
into vsmp_init() and keep a pure flag return is_vsmp_box(). That way
there can be no question at all whether there are (or can be) any
side-effects of that function.

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/