summaryrefslogtreecommitdiff
path: root/drivers/xen/evtchn.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2013-10-17 14:23:15 (GMT)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2014-01-06 15:07:47 (GMT)
commitd0b075ffeede257342c3afdbeadd2fda8504ecee (patch)
tree1c512a95b2e335301917ba5f77553545c14ae215 /drivers/xen/evtchn.c
parent083858758f67bb20ef6be5bc8442be91cca8ee2d (diff)
downloadlinux-d0b075ffeede257342c3afdbeadd2fda8504ecee.tar.xz
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>
Diffstat (limited to 'drivers/xen/evtchn.c')
0 files changed, 0 insertions, 0 deletions