lkml.org 
[lkml]   [2011]   [May]   [16]   [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

* Suresh Siddha <suresh.b.siddha@intel.com> wrote:

> From: Suresh Siddha <suresh.b.siddha@intel.com>
> Subject: x84_64, apic: Use probe routines to simplify apic selection
>
> Use the unused probe routine in the apic driver to finalize the apic model
> selection. This cleans up the default_setup_apic_routing() and this probe
> routine in future can also be used for doing any apic model specific
> initialization.
>
> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
> Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
> ---
> arch/x86/kernel/apic/apic_flat_64.c | 10 +++++++++-
> arch/x86/kernel/apic/probe_64.c | 22 +++++++---------------
> arch/x86/kernel/apic/x2apic_cluster.c | 7 ++++++-
> arch/x86/kernel/apic/x2apic_phys.c | 10 +++++++++-
> arch/x86/kernel/apic/x2apic_uv_x.c | 7 ++++++-
> 5 files changed, 37 insertions(+), 19 deletions(-)

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.

Thanks,

Ingo


\
 
 \ /
  Last update: 2011-05-16 10:11    [W:0.109 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site