lkml.org 
[lkml]   [2011]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/5] x84_64, apic: Use probe routines to simplify apic selection
On Tue, 17 May 2011, Ingo Molnar wrote:
>
> * Suresh Siddha <suresh.b.siddha@intel.com> wrote:
>
> > On Mon, 2011-05-16 at 01:08 -0700, Ingo Molnar wrote:
> > > Ok, looks like a step forward in the right direction.
> > >
> > > Wouldnt it be more self-contained if the probe function returned an apic driver
> > > pointer?
> > >
> > > We could add an __apicdriver section trick to 'know' about all APIC probing
> > > functions - and we'd call them one by one and use the first one that returns a
> > > non-NULL result.
> > >
> > > Then we'd have the generic fallback APIC drivers as well - not marked
> > > __apicdriver but used by the probe function directly.
> > >
> > > Or we could have them as __apicdriver as well, but then the .o link ordering
> > > matters to probing order.
> > >
> >
> > So how does something like the appended look? There are multiple apic
> > driver routines and apic name string that is being looked at by the
> > generic code. So I exported the struct apic * using the section trick.
> >
> > Untested for now. If you are ok, then I will post with a better
> > changelog.
>
> Yeah, this looks very nice to me.

Ditto.


\
 
 \ /
  Last update: 2011-05-17 15:05    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog