]> Gentwo Git Trees - linux/.git/commit
PM: hibernate: add configurable delay for pm_test
authorZihuan Zhang <zhangzihuan@kylinos.cn>
Wed, 7 May 2025 06:35:20 +0000 (14:35 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 May 2025 13:59:10 +0000 (15:59 +0200)
commit50c9bb30dc1f9731995a191deafbc49be717053e
treeb4e0ff43801cf9516005b342e76a6472699da71d
parentf0050a3e214aa941b78ad4caf122a735a24d81a6
PM: hibernate: add configurable delay for pm_test

Turn the default 5 second test delay for hibernation into a
configurable module parameter, so users can determine how
long to wait in this pseudo-hibernate state before resuming
the system.

The configurable delay parameter has been added for suspend, so
add an analogous one for hibernation.

Example (wait 30 seconds);

  # echo 30 > /sys/module/hibernate/parameters/pm_test_delay
  # echo core > /sys/power/pm_test

Signed-off-by: Zihuan Zhang <zhangzihuan@kylinos.cn>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/20250507063520.419635-1-zhangzihuan@kylinos.cn
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/admin-guide/kernel-parameters.txt
kernel/power/hibernate.c