xen/evtchn: track enabled state for each port
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 18 Sep 2009 23:31:22 +0000 (16:31 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sat, 19 Sep 2009 00:13:14 +0000 (17:13 -0700)
commite3cc067b0a79d3a3672bfe7cfba12f2e8ae56039
tree645b3eed7f7a4e426a731a5cc4f906834d0e6189
parent74fca6a42863ffacaf7ba6f1936a9f228950f657
xen/evtchn: track enabled state for each port

enable/disable_irq() complain if the enables/disables are unbalanced,
so keep track of the state and avoid redundant enables.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/evtchn.c