|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright(c) 2015, 2016 Intel Corporation.
|
|
|
|
|
|
+ * Copyright(c) 2015 - 2017 Intel Corporation.
|
|
*
|
|
*
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* redistributing this file, you may do so under either license.
|
|
* redistributing this file, you may do so under either license.
|
|
@@ -75,24 +75,26 @@ struct hfi1_msix_entry;
|
|
/* Initialize non-HT cpu cores mask */
|
|
/* Initialize non-HT cpu cores mask */
|
|
void init_real_cpu_mask(void);
|
|
void init_real_cpu_mask(void);
|
|
/* Initialize driver affinity data */
|
|
/* Initialize driver affinity data */
|
|
-int hfi1_dev_affinity_init(struct hfi1_devdata *);
|
|
|
|
|
|
+int hfi1_dev_affinity_init(struct hfi1_devdata *dd);
|
|
/*
|
|
/*
|
|
* Set IRQ affinity to a CPU. The function will determine the
|
|
* Set IRQ affinity to a CPU. The function will determine the
|
|
* CPU and set the affinity to it.
|
|
* CPU and set the affinity to it.
|
|
*/
|
|
*/
|
|
-int hfi1_get_irq_affinity(struct hfi1_devdata *, struct hfi1_msix_entry *);
|
|
|
|
|
|
+int hfi1_get_irq_affinity(struct hfi1_devdata *dd,
|
|
|
|
+ struct hfi1_msix_entry *msix);
|
|
/*
|
|
/*
|
|
* Remove the IRQ's CPU affinity. This function also updates
|
|
* Remove the IRQ's CPU affinity. This function also updates
|
|
* any internal CPU tracking data
|
|
* any internal CPU tracking data
|
|
*/
|
|
*/
|
|
-void hfi1_put_irq_affinity(struct hfi1_devdata *, struct hfi1_msix_entry *);
|
|
|
|
|
|
+void hfi1_put_irq_affinity(struct hfi1_devdata *dd,
|
|
|
|
+ struct hfi1_msix_entry *msix);
|
|
/*
|
|
/*
|
|
* Determine a CPU affinity for a user process, if the process does not
|
|
* Determine a CPU affinity for a user process, if the process does not
|
|
* have an affinity set yet.
|
|
* have an affinity set yet.
|
|
*/
|
|
*/
|
|
-int hfi1_get_proc_affinity(int);
|
|
|
|
|
|
+int hfi1_get_proc_affinity(int node);
|
|
/* Release a CPU used by a user process. */
|
|
/* Release a CPU used by a user process. */
|
|
-void hfi1_put_proc_affinity(int);
|
|
|
|
|
|
+void hfi1_put_proc_affinity(int cpu);
|
|
|
|
|
|
struct hfi1_affinity_node {
|
|
struct hfi1_affinity_node {
|
|
int node;
|
|
int node;
|