[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [PATCH v3 12/16] Save/Restore Support: Add support for suspend/restore events.
Signed-off-by: Bruno Alvisio <bruno.alvisio@xxxxxxxxx> Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> --- events.c | 5 +++++ include/events.h | 1 + kernel.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/events.c b/events.c index e8ef8aa..342aead 100644 --- a/events.c +++ b/events.c @@ -183,6 +183,11 @@ void fini_events(void) arch_fini_events(); } +void suspend_events(void) +{ + unbind_all_ports(); +} + void default_handler(evtchn_port_t port, struct pt_regs *regs, void *ignore) { printk("[Port %d] - event received\n", port); diff --git a/include/events.h b/include/events.h index 89b5997..705ad93 100644 --- a/include/events.h +++ b/include/events.h @@ -55,5 +55,6 @@ static inline int notify_remote_via_evtchn(evtchn_port_t port) } void fini_events(void); +void suspend_events(void); #endif /* _EVENTS_H_ */ diff --git a/kernel.c b/kernel.c index 2fb69bf..d078e0a 100644 --- a/kernel.c +++ b/kernel.c @@ -124,6 +124,8 @@ void pre_suspend(void) fini_time(); suspend_console(); + + suspend_events(); } void post_suspend(int canceled) -- 2.3.2 (Apple Git-55) _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |