Commit 6fab2a88 authored by Jan Sokolowski's avatar Jan Sokolowski Committed by Doug Ledford

IB/hfi1: Remove unused hfi1_cpulist variables

Following variables: hfi1_cpulist and hfi1_cpulist_count
are unused. Remove them.
Reviewed-by: default avatarHarish Chegondi <harish.chegondi@intel.com>
Reviewed-by: default avatarJakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: default avatarJan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 21e5acc0
...@@ -1371,8 +1371,6 @@ struct hfi1_filedata { ...@@ -1371,8 +1371,6 @@ struct hfi1_filedata {
extern struct list_head hfi1_dev_list; extern struct list_head hfi1_dev_list;
extern spinlock_t hfi1_devs_lock; extern spinlock_t hfi1_devs_lock;
struct hfi1_devdata *hfi1_lookup(int unit); struct hfi1_devdata *hfi1_lookup(int unit);
extern u32 hfi1_cpulist_count;
extern unsigned long *hfi1_cpulist;
static inline unsigned long uctxt_offset(struct hfi1_ctxtdata *uctxt) static inline unsigned long uctxt_offset(struct hfi1_ctxtdata *uctxt)
{ {
......
...@@ -123,8 +123,6 @@ MODULE_PARM_DESC(user_credit_return_threshold, "Credit return threshold for user ...@@ -123,8 +123,6 @@ MODULE_PARM_DESC(user_credit_return_threshold, "Credit return threshold for user
static inline u64 encode_rcv_header_entry_size(u16 size); static inline u64 encode_rcv_header_entry_size(u16 size);
static struct idr hfi1_unit_table; static struct idr hfi1_unit_table;
u32 hfi1_cpulist_count;
unsigned long *hfi1_cpulist;
static int hfi1_create_kctxt(struct hfi1_devdata *dd, static int hfi1_create_kctxt(struct hfi1_devdata *dd,
struct hfi1_pportdata *ppd) struct hfi1_pportdata *ppd)
...@@ -1287,18 +1285,6 @@ struct hfi1_devdata *hfi1_alloc_devdata(struct pci_dev *pdev, size_t extra) ...@@ -1287,18 +1285,6 @@ struct hfi1_devdata *hfi1_alloc_devdata(struct pci_dev *pdev, size_t extra)
goto bail; goto bail;
} }
if (!hfi1_cpulist_count) {
u32 count = num_online_cpus();
hfi1_cpulist = kcalloc(BITS_TO_LONGS(count), sizeof(long),
GFP_KERNEL);
if (hfi1_cpulist)
hfi1_cpulist_count = count;
else
hfi1_early_err(
&pdev->dev,
"Could not alloc cpulist info, cpu affinity might be wrong\n");
}
kobject_init(&dd->kobj, &hfi1_devdata_type); kobject_init(&dd->kobj, &hfi1_devdata_type);
return dd; return dd;
...@@ -1471,8 +1457,6 @@ static void __exit hfi1_mod_cleanup(void) ...@@ -1471,8 +1457,6 @@ static void __exit hfi1_mod_cleanup(void)
node_affinity_destroy(); node_affinity_destroy();
hfi1_wss_exit(); hfi1_wss_exit();
hfi1_dbg_exit(); hfi1_dbg_exit();
hfi1_cpulist_count = 0;
kfree(hfi1_cpulist);
idr_destroy(&hfi1_unit_table); idr_destroy(&hfi1_unit_table);
dispose_firmware(); /* asymmetric with obtain_firmware() */ dispose_firmware(); /* asymmetric with obtain_firmware() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment