IB/hfi1: Avoid credit return allocation for cpu-less NUMA nodes
authorHarish Chegondi <harish.chegondi@intel.com>
Thu, 8 Dec 2016 03:34:19 +0000 (19:34 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 11 Dec 2016 20:29:42 +0000 (15:29 -0500)
commit9d8145a604937780898c0e4bdb124a57988fc2ed
treed60b98fe47eedeb8bf830674fdbdcfe8d031bcd5
parent0771da5a6e9d67e48207a81ddf6c8e739e9493bd
IB/hfi1: Avoid credit return allocation for cpu-less NUMA nodes

Do not allocate credit return base and DMA memory for
NUMA nodes without CPUs.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/affinity.c
drivers/infiniband/hw/hfi1/affinity.h
drivers/infiniband/hw/hfi1/pio.c