diff options
Diffstat (limited to 'kernel/power/disk.c')
-rw-r--r-- | kernel/power/disk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index b138b431e271..659736508239 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
@@ -499,6 +499,10 @@ static int software_resume(void) | |||
499 | goto Unlock; | 499 | goto Unlock; |
500 | } | 500 | } |
501 | 501 | ||
502 | error = pm_notifier_call_chain(PM_RESTORE_PREPARE); | ||
503 | if (error) | ||
504 | goto Finish; | ||
505 | |||
502 | error = create_basic_memory_bitmaps(); | 506 | error = create_basic_memory_bitmaps(); |
503 | if (error) | 507 | if (error) |
504 | goto Finish; | 508 | goto Finish; |
@@ -522,6 +526,7 @@ static int software_resume(void) | |||
522 | Done: | 526 | Done: |
523 | free_basic_memory_bitmaps(); | 527 | free_basic_memory_bitmaps(); |
524 | Finish: | 528 | Finish: |
529 | pm_notifier_call_chain(PM_POST_RESTORE); | ||
525 | atomic_inc(&snapshot_device_available); | 530 | atomic_inc(&snapshot_device_available); |
526 | /* For success case, the suspend path will release the lock */ | 531 | /* For success case, the suspend path will release the lock */ |
527 | Unlock: | 532 | Unlock: |