freeze: ignore multiple freeze request.

Change-Id: Ib7a7c4677137446cf7f7b387d016bacc7f0e9620
This commit is contained in:
TOIDA,Suguru
2019-09-18 19:01:59 +09:00
committed by Masamichi Takagi
parent dec133c1dd
commit 83ade5cdcd

View File

@@ -17,6 +17,9 @@ freeze()
unsigned long flags;
struct ihk_os_cpu_monitor *monitor = cpu_local_var(monitor);
if (monitor->status_bak & IHK_OS_MONITOR_ALLOW_THAW_REQUEST) {
return;
}
monitor->status_bak = monitor->status
| IHK_OS_MONITOR_ALLOW_THAW_REQUEST;
monitor->status = IHK_OS_MONITOR_KERNEL_FROZEN;