freeze: ignore multiple freeze request.
Change-Id: Ib7a7c4677137446cf7f7b387d016bacc7f0e9620
This commit is contained in:
committed by
Masamichi Takagi
parent
dec133c1dd
commit
83ade5cdcd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user