]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: platform: expose numa_node to users in sysfs
authorBarry Song <song.bao.hua@hisilicon.com>
Fri, 19 Jun 2020 03:00:45 +0000 (15:00 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 12:14:37 +0000 (14:14 +0200)
commit75da9d9b4f444196ef1c840d4a36afafa4be6533
treec222443b64feee47c2db0bb8cedc8b96d3fa1c77
parentbf221a7bfd2b8aaf2bf65815195542822f465926
driver core: platform: expose numa_node to users in sysfs

Some platform devices like ARM SMMU are memory-mapped and populated by ACPI/IORT.
In this case, NUMA topology of those platform devices are exported by firmware as
well. Software might care about the numa_node of those devices in order to achieve
NUMA locality.
This patch will show the numa_node for this kind of devices in sysfs. For those
platform devices without numa, numa_node won't be visible.

Cc: Prime Zeng <prime.zeng@hisilicon.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Link: https://lore.kernel.org/r/20200619030045.81956-1-song.bao.hua@hisilicon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-platform
drivers/base/platform.c