diff options
-rw-r--r-- | drivers/misc/cxl/api.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c index 34ba67bc41bd..a535c1e6aa92 100644 --- a/drivers/misc/cxl/api.c +++ b/drivers/misc/cxl/api.c | |||
@@ -552,30 +552,3 @@ ssize_t cxl_read_adapter_vpd(struct pci_dev *dev, void *buf, size_t count) | |||
552 | return cxl_ops->read_adapter_vpd(afu->adapter, buf, count); | 552 | return cxl_ops->read_adapter_vpd(afu->adapter, buf, count); |
553 | } | 553 | } |
554 | EXPORT_SYMBOL_GPL(cxl_read_adapter_vpd); | 554 | EXPORT_SYMBOL_GPL(cxl_read_adapter_vpd); |
555 | |||
556 | int cxl_set_max_irqs_per_process(struct pci_dev *dev, int irqs) | ||
557 | { | ||
558 | struct cxl_afu *afu = cxl_pci_to_afu(dev); | ||
559 | if (IS_ERR(afu)) | ||
560 | return -ENODEV; | ||
561 | |||
562 | if (irqs > afu->adapter->user_irqs) | ||
563 | return -EINVAL; | ||
564 | |||
565 | /* Limit user_irqs to prevent the user increasing this via sysfs */ | ||
566 | afu->adapter->user_irqs = irqs; | ||
567 | afu->irqs_max = irqs; | ||
568 | |||
569 | return 0; | ||
570 | } | ||
571 | EXPORT_SYMBOL_GPL(cxl_set_max_irqs_per_process); | ||
572 | |||
573 | int cxl_get_max_irqs_per_process(struct pci_dev *dev) | ||
574 | { | ||
575 | struct cxl_afu *afu = cxl_pci_to_afu(dev); | ||
576 | if (IS_ERR(afu)) | ||
577 | return -ENODEV; | ||
578 | |||
579 | return afu->irqs_max; | ||
580 | } | ||
581 | EXPORT_SYMBOL_GPL(cxl_get_max_irqs_per_process); | ||