[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200826130122.GR17456@casper.infradead.org>
Date: Wed, 26 Aug 2020 14:01:22 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Jinyang He <hejinyang@...ngson.cn>
Cc: Huacai Chen <chenhc@...ote.com>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, Tiezhu Yang <yangtiezhu@...ngson.cn>,
Xuefeng Li <lixuefeng@...ngson.cn>
Subject: Re: [PATCH] MIPS: Loongson: Fix complie errors without CONFIG_SMP
On Wed, Aug 26, 2020 at 08:53:27PM +0800, Jinyang He wrote:
> +++ b/arch/mips/include/asm/mach-loongson64/topology.h
> @@ -4,7 +4,11 @@
>
> #ifdef CONFIG_NUMA
>
> +#ifdef CONFIG_SMP
> #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
> +#else
> +#define cpu_to_node(cpu) 0
> +#endif
Are you saying you've enabled NUMA without enabling SMP? Does that make
sense?
Powered by blists - more mailing lists