lkml.org 
[lkml]   [2009]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/14] [VOYAGER] x86: add {safe,hard}_smp_processor_id to smp_ops
James Bottomley wrote:
> Not having apics, Voyager can't use the default apic implementation of
> these, it has to read from a special port in the VIC to get the
> processor ID, so abstract these functions in smp_ops to allow voyager
> to live simultaneously with the apic code.
>

I thnk we should just drop safe_smp_processor_id(). It doesn't seem to
do anything useful.

> diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
> index 429834e..eb795bf 100644
> --- a/arch/x86/xen/smp.c
> +++ b/arch/x86/xen/smp.c
> @@ -454,6 +454,11 @@ static irqreturn_t xen_call_function_single_interrupt(int irq, void *dev_id)
> return IRQ_HANDLED;
> }
>
> +static int xen_hard_smp_processor_id(void)
> +{
> + return read_apic_id();
> +}
>

This should just be "return smp_processor_id()". There are no
meaningful APICs under Xen.

J


\
 
 \ /
  Last update: 2009-04-14 18:39    [W:0.111 / U:1.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site