[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5ac2fb0e-744b-3bb5-133a-ac684e061d17@huawei.com>
Date: Thu, 4 Apr 2019 10:02:30 +0800
From: Hanjun Guo <guohanjun@...wei.com>
To: Alex Kogan <alex.kogan@...cle.com>, <linux@...linux.org.uk>,
<peterz@...radead.org>, <mingo@...hat.com>, <will.deacon@....com>,
<arnd@...db.de>, <longman@...hat.com>,
<linux-arch@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <tglx@...utronix.de>,
<bp@...en8.de>, <hpa@...or.com>, <x86@...nel.org>
CC: <dave.dice@...cle.com>, <rahul.x.yadav@...cle.com>,
<steven.sistare@...cle.com>, <daniel.m.jordan@...cle.com>
Subject: Re: [PATCH v2 3/5] locking/qspinlock: Introduce CNA into the slow
path of qspinlock
Hi Alex,
On 2019/3/29 23:20, Alex Kogan wrote:
> +
> +static __always_inline void cna_init_node(struct mcs_spinlock *node, int cpuid,
> + u32 tail)
> +{
> + if (decode_numa_node(node->node_and_count) == -1)
> + store_numa_node(node, numa_cpu_node(cpuid));
How about using cpu_to_node() here and #include <linux/topology.h> in this
file, then the code can be reused for other architectures such as ARM64?
Thanks
Hanjun
Powered by blists - more mailing lists