diff options
author | Hari Bathini <hbathini@linux.vnet.ibm.com> | 2017-06-01 21:40:10 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-06-28 05:08:11 +0200 |
commit | 68fa6478e3b1fab7077d390070ed455aed93905c (patch) | |
tree | 8f3a0d16416047926cc6904062dbad49d6a17690 /drivers/cpuidle/cpuidle-powernv.c | |
parent | powerpc/fadump: provide a helpful error message (diff) | |
download | linux-68fa6478e3b1fab7077d390070ed455aed93905c.tar.xz linux-68fa6478e3b1fab7077d390070ed455aed93905c.zip |
powerpc/fadump: add reschedule point while releasing memory
Around 95% of memory is reserved by fadump/capture kernel. All this
memory is freed, one page at a time, on writing '1' to the node
/sys/kernel/fadump_release_mem. On systems with large memory, this
can take a long time to complete, leading to soft lockup warning
messages. To avoid this, add reschedule points at regular intervals.
Also, while memblock_reserve() implicitly takes care of holes in the
given memory range while reserving memory, those holes need to be
taken care of while releasing memory as memory is freed one page at
a time. Add support to skip holes while releasing memory.
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/cpuidle/cpuidle-powernv.c')
0 files changed, 0 insertions, 0 deletions