浏览代码

ACPICA: Clear events initialized flag upon event component termination

Clear this flag to allow clean startup and even double termination.
ACPICA BZ 1013. Tomasz Nowicki <tomasz.nowicki@linaro.org>

References: https://bugs.acpica.org/show_bug.cgi?id=1013
Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tomasz Nowicki 12 年之前
父节点
当前提交
64f3af5fd1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/acpi/acpica/evmisc.c

+ 2 - 0
drivers/acpi/acpica/evmisc.c

@@ -276,6 +276,8 @@ void acpi_ev_terminate(void)
 			ACPI_ERROR((AE_INFO,
 			ACPI_ERROR((AE_INFO,
 				    "Could not remove Global Lock handler"));
 				    "Could not remove Global Lock handler"));
 		}
 		}
+
+		acpi_gbl_events_initialized = FALSE;
 	}
 	}
 
 
 	/* Deallocate all handler objects installed within GPE info structs */
 	/* Deallocate all handler objects installed within GPE info structs */