lkml.org 
[lkml]   [2004]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Lse-tech] [RFC][PATCH] Change pcibus_to_cpumask() to pcibus_to_node()
From
Date
On Wed, 2004-07-28 at 08:01, Martin J. Bligh wrote:
> >> I wonder though if we shouldn't add
> >>
> >> ...
> >> # ifdef CONFIG_NUMA
> >> int node; /* or nodemask_t if necessary */
> >> # endif
> >> ...
> >>
> >> to struct pci_bus instead? That would make the existing code paths a little
> >> faster and avoid the need for a global array, which tends to lead to TLB
> >> misses.
> >
> > I like that idea! Stick a nodemask_t in struct pci_bus, initialize it
> > to NODE_MASK_ALL. If a particular arch wants to put something more
> > accurate in there, then great, if not, we're just in the same boat we're
> > in now.
> >
> > Anyone else have opinions one way or the other on Jesse's idea?
>
> Sounds great - if it's possible to add it to something more generic than
> PCI, that'd be even better, but pci would still be very useful.
>
> M.

Is there anything like that? I'm not aware of any structure that keeps
track of general "buses", which would be what we want. Something that
keeps track of PCI buses, Infiniband buses, arch-specific fabric buses,
etc. Barring the existence of such a structure, I'll just shove it in
the PCI bus structure for now.

-Matt

-
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/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:1.373 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site