mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] PCI: Run PCI driver initialization on local node
Run PCI driver initialization on local node Instead of adding messy kmalloc_node()s everywhere run the PCI driver probe on the node local to the device. This would not have helped for IDE, but should for other more clean drivers that do more initialization in probe(). It won't help for drivers that do most of the work on first open (like many network drivers) Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
56d8456b06
commit
d42c69972b
3 changed files with 32 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ static kmem_cache_t *sn_cache;
|
|||
policied. */
|
||||
static int policy_zone;
|
||||
|
||||
static struct mempolicy default_policy = {
|
||||
struct mempolicy default_policy = {
|
||||
.refcnt = ATOMIC_INIT(1), /* never free it */
|
||||
.policy = MPOL_DEFAULT,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue