summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/hfi1/affinity.h
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2016-07-25 13:39:27 -0700
committerDoug Ledford <dledford@redhat.com>2016-08-02 16:00:58 -0400
commitb14db1f0aa4fccd0e5ebcbe588d1136f3a23dbc6 (patch)
treee5d7ced2d9db2ba20a16bc0fca66763df3cb601d /drivers/infiniband/hw/hfi1/affinity.h
parentc3f8de0b334c96cdbd7aa6c1c9d5578300ad68b0 (diff)
IB/hfi1: Add sysfs entry to override SDMA interrupt affinity
Add sysfs entry to allow user to override affinity for SDMA engine interrupts. Reviewed-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/affinity.h')
-rw-r--r--drivers/infiniband/hw/hfi1/affinity.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/affinity.h b/drivers/infiniband/hw/hfi1/affinity.h
index f784de52e881..8879cf7a8cac 100644
--- a/drivers/infiniband/hw/hfi1/affinity.h
+++ b/drivers/infiniband/hw/hfi1/affinity.h
@@ -102,6 +102,10 @@ int hfi1_get_proc_affinity(int);
/* Release a CPU used by a user process. */
void hfi1_put_proc_affinity(int);
+int hfi1_get_sdma_affinity(struct hfi1_devdata *dd, char *buf);
+int hfi1_set_sdma_affinity(struct hfi1_devdata *dd, const char *buf,
+ size_t count);
+
struct hfi1_affinity_node {
int node;
struct cpu_mask_set def_intr;