devm: make allocations numa aware by default
authorDan Williams <dan.j.williams@intel.com>
Tue, 6 Oct 2015 00:35:55 +0000 (20:35 -0400)
committerDan Williams <dan.j.williams@intel.com>
Fri, 9 Oct 2015 21:00:33 +0000 (17:00 -0400)
commit7c683941f30a977c10ec6be174ec5f16939c7ce5
treed63025ea6a08b89a9bcc0db8a5a256e70610d4ec
parentb36f47617f6ce7c5e8e7c264b9d9ea0654d9f20a
devm: make allocations numa aware by default

Given we already have a device just use dev_to_node() to provide hint
allocations for devres.  However, current devres_alloc() users will need
to explicitly opt-in with devres_alloc_node().

Reviewed-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/base/devres.c
include/linux/device.h