diff options
author | David Vrabel <david.vrabel@citrix.com> | 2013-03-14 08:49:19 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-01-06 10:07:43 -0500 |
commit | ab9a1cca3d172876ae9d5edb63abce7986045597 (patch) | |
tree | 1ae3ed8c8f54b7e50abf9336643c7f8110eca880 /drivers/xen/events/events_base.c | |
parent | 9a489f45a155fe96b9b55fbbef2b757ef7737cfc (diff) |
xen/events: add struct evtchn_ops for the low-level port operations
evtchn_ops contains the low-level operations that access the shared
data structures. This allows alternate ABIs to be supported.
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/events_base.c')
-rw-r--r-- | drivers/xen/events/events_base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index 8771b740e30f..7c7b744cd13d 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c | |||
@@ -61,6 +61,8 @@ | |||
61 | 61 | ||
62 | #include "events_internal.h" | 62 | #include "events_internal.h" |
63 | 63 | ||
64 | const struct evtchn_ops *evtchn_ops; | ||
65 | |||
64 | /* | 66 | /* |
65 | * This lock protects updates to the following mapping and reference-count | 67 | * This lock protects updates to the following mapping and reference-count |
66 | * arrays. The lock does not need to be acquired to read the mapping tables. | 68 | * arrays. The lock does not need to be acquired to read the mapping tables. |
@@ -1523,6 +1525,8 @@ void __init xen_init_IRQ(void) | |||
1523 | { | 1525 | { |
1524 | int i; | 1526 | int i; |
1525 | 1527 | ||
1528 | xen_evtchn_2l_init(); | ||
1529 | |||
1526 | evtchn_to_irq = kcalloc(NR_EVENT_CHANNELS, sizeof(*evtchn_to_irq), | 1530 | evtchn_to_irq = kcalloc(NR_EVENT_CHANNELS, sizeof(*evtchn_to_irq), |
1527 | GFP_KERNEL); | 1531 | GFP_KERNEL); |
1528 | BUG_ON(!evtchn_to_irq); | 1532 | BUG_ON(!evtchn_to_irq); |