[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86802c440808141034g15542e2i1bdaf4615264df98@mail.gmail.com>
Date: Thu, 14 Aug 2008 10:34:18 -0700
From: "Yinghai Lu" <yhlu.kernel@...il.com>
To: "Ingo Molnar" <mingo@...e.hu>
Cc: "Thomas Gleixner" <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org,
"Alan Cox" <alan@...rguk.ukuu.org.uk>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"Andrew Morton" <akpm@...ux-foundation.org>
Subject: Re: [PATCH] irq: sparse irqs, fix #3
On Thu, Aug 14, 2008 at 7:07 AM, Ingo Molnar <mingo@...e.hu> wrote:
>
> From 1b53f0444df394e4448ba56694f0bc4dda2bece0 Mon Sep 17 00:00:00 2001
> From: Ingo Molnar <mingo@...e.hu>
> Date: Thu, 14 Aug 2008 16:07:04 +0200
> Subject: [PATCH] irq: sparse irqs, fix #3
>
> fix non-APIC UP build:
>
> arch/x86/kernel/built-in.o: In function `setup_arch':
> : undefined reference to `pin_map_size'
> arch/x86/kernel/built-in.o: In function `setup_arch':
> : undefined reference to `first_free_entry'
>
> Signed-off-by: Ingo Molnar <mingo@...e.hu>
> ---
> arch/x86/kernel/setup.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
> index 24e984e..8318a35 100644
> --- a/arch/x86/kernel/setup.c
> +++ b/arch/x86/kernel/setup.c
> @@ -863,8 +863,10 @@ void __init setup_arch(char **cmdline_p)
> nr_irqs = 32 * nr_cpu_ids + 224;
> init_cpu_to_node();
> #endif
> +#ifdef CONFIG_X86_LOCAL_APIC
> pin_map_size = nr_irqs * 2;
> first_free_entry = nr_irqs;
> +#endif
>
> init_apic_mappings();
> ioapic_init_mappings();
>
we don't need pin_map_size and first_free_entry after 64 and 32 bit
all put irq_2_pin in irq_cfg.
need to remove them.
YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists