[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080815085156.GB18748@elte.hu>
Date: Fri, 15 Aug 2008 10:51:56 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Yinghai Lu <yhlu.kernel@...il.com>
Cc: Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/7] x86: make 32bit support per_cpu vector fix #1
* Yinghai Lu <yhlu.kernel@...il.com> wrote:
> On Fri, Aug 15, 2008 at 1:21 AM, Ingo Molnar <mingo@...e.hu> wrote:
> >
> > * Yinghai Lu <yhlu.kernel@...il.com> wrote:
> >
> >> +#ifdef CONFIG_SMP
> >> + return cpu_online_map;
> >> +#else
> >> + return cpumask_of_cpu(0);
> >> +#endif
> >
> > unrelated sidenote - shouldnt the scheduler define cpu_online_map to
> > cpumask_of_cpu(0) on UP, to avoid such ugly #ifdefs?
>
> copy that from mach_default...
sure, that's the right approach - preserve existing code to reduce risk.
> should double check if cpu_online_map is cpu_mask_of_cpu(0) if !CONFIG_SMP
yeah. Separate clean-up patch i think.
Ingo
--
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