From: Bruno Alvisio Date: Mon, 18 Dec 2017 19:29:59 +0000 (-0800) Subject: Save/Restore Support: Disable/enable IRQs during suspend/restore X-Git-Tag: xen-RELEASE-4.14.0~17 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=854e42be52ef2c57a492ee3d063c687cfe4b839b;p=mini-os.git Save/Restore Support: Disable/enable IRQs during suspend/restore Signed-off-by: Bruno Alvisio Reviewed-by: Samuel Thibault --- diff --git a/kernel.c b/kernel.c index 1cd40e8..782eb79 100644 --- a/kernel.c +++ b/kernel.c @@ -119,12 +119,12 @@ void start_kernel(void* par) void pre_suspend(void) { - + local_irq_disable(); } void post_suspend(int canceled) { - + local_irq_enable(); } void stop_kernel(void)