sched/topology: Remove unused numa_distance in cpu_attach_domain()
authorYicong Yang <yangyicong@hisilicon.com>
Wed, 15 Sep 2021 06:31:58 +0000 (14:31 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 14 Oct 2021 11:09:58 +0000 (13:09 +0200)
commitf9ec6fea201429b5a3f76319e943989f1a1e25ef
treeb60a14bf5ef36bd5c8c37fc14c678d3cf6c82d5b
parent7d380f24fe662033fd21a65f678057abd293f76e
sched/topology: Remove unused numa_distance in cpu_attach_domain()

numa_distance in cpu_attach_domain() is introduced in
commit b5b217346de8 ("sched/topology: Warn when NUMA diameter > 2")
to warn user when NUMA diameter > 2 as we'll misrepresent
the scheduler topology structures at that time. This is
fixed by Barry in commit 585b6d2723dc ("sched/topology: fix the issue
groups don't span domain->span for NUMA diameter > 2") and
numa_distance is unused now. So remove it.

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Barry Song <baohua@kernel.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lore.kernel.org/r/20210915063158.80639-1-yangyicong@hisilicon.com
kernel/sched/topology.c