]> git.baikalelectronics.ru Git - kernel.git/commit
xen/events: Refactor evtchn_to_irq array to be dynamically allocated
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 17 Oct 2013 14:23:15 +0000 (15:23 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:07:47 +0000 (10:07 -0500)
commitbf8b3f1ab0a0bf205003dd55836763a9655c48f3
tree1c512a95b2e335301917ba5f77553545c14ae215
parent8f65be6270b490445705f22a5d6c29105dbf2cd5
xen/events: Refactor evtchn_to_irq array to be dynamically allocated

Refactor static array evtchn_to_irq array to be dynamically allocated by
implementing get and set functions for accesses to the array.

Two new port ops are added: max_channels (maximum supported number of
event channels) and nr_channels (number of currently usable event
channels).  For the 2-level ABI, these numbers are both the same as
the shared data structure is a fixed size. For the FIFO ABI, these
will be different as the event array is expanded dynamically.

This allows more than 65000 event channels so an unsigned short is no
longer sufficient for an event channel port number and unsigned int is
used instead.

Signed-off-by: Malcolm Crossley <malcolm.crossley@citrix.com>
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>
drivers/xen/events/events_2l.c
drivers/xen/events/events_base.c
drivers/xen/events/events_internal.h