summaryrefslogtreecommitdiffstats
path: root/drivers/xen/events
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2013-09-23 21:03:38 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2014-01-06 10:07:50 -0500
commit0dc0064add422bc0ef5165ebe9ece3052bbd457d (patch)
tree29dff7edc3c45bf038e3b36a53d3bf4a647f29ff /drivers/xen/events
parentfd21069dfe31a4b20f5ef580006abe72d1660f5b (diff)
downloadop-kernel-dev-0dc0064add422bc0ef5165ebe9ece3052bbd457d.zip
op-kernel-dev-0dc0064add422bc0ef5165ebe9ece3052bbd457d.tar.gz
xen/evtchn: support more than 4096 ports
Remove the check during unbind for NR_EVENT_CHANNELS as this limits support to less than 4096 ports. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/xen/events')
-rw-r--r--drivers/xen/events/events_base.c13
-rw-r--r--drivers/xen/events/events_internal.h5
2 files changed, 13 insertions, 5 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
index c6d64f1..9d0d88c 100644
--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -952,6 +952,19 @@ static int find_virq(unsigned int virq, unsigned int cpu)
return rc;
}
+/**
+ * xen_evtchn_nr_channels - number of usable event channel ports
+ *
+ * This may be less than the maximum supported by the current
+ * hypervisor ABI. Use xen_evtchn_max_channels() for the maximum
+ * supported.
+ */
+unsigned xen_evtchn_nr_channels(void)
+{
+ return evtchn_ops->nr_channels();
+}
+EXPORT_SYMBOL_GPL(xen_evtchn_nr_channels);
+
int bind_virq_to_irq(unsigned int virq, unsigned int cpu)
{
struct evtchn_bind_virq bind_virq;
diff --git a/drivers/xen/events/events_internal.h b/drivers/xen/events/events_internal.h
index a3d9aec..2862e1c 100644
--- a/drivers/xen/events/events_internal.h
+++ b/drivers/xen/events/events_internal.h
@@ -85,11 +85,6 @@ static inline unsigned xen_evtchn_max_channels(void)
return evtchn_ops->max_channels();
}
-static inline unsigned xen_evtchn_nr_channels(void)
-{
- return evtchn_ops->nr_channels();
-}
-
/*
* Do any ABI specific setup for a bound event channel before it can
* be unmasked and used.
OpenPOWER on IntegriCloud