lib: devres: use numa aware allocation
authorMark-PK Tsai <mark-pk.tsai@mediatek.com>
Fri, 8 Jul 2022 13:19:47 +0000 (21:19 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:41 +0000 (17:31 -0700)
commit55656016daa7155d95471627c1b1438d488f011b
tree7d161e899c2bfec9c41d46c149ddbfd9ff98b022
parentbd27acaac24e4b252ee28dddcabaee80456d0faf
lib: devres: use numa aware allocation

Allocate device resource from local node memory when the numa locality of
the device is specified.

Link: https://lkml.kernel.org/r/20220708131952.14500-1-mark-pk.tsai@mediatek.com
Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: YJ Chiang <yj.chiang@mediatek.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/devres.c