summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-12-26 14:50:57 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-12-28 13:01:39 +0100
commit684d3b2670a26313bbb99de6d66f384ac0e31c9b (patch)
treebe43254eb34061470fcb9d40d9899ec10913341a /tools/lib/python
parent9448598b22c50c8a5bb77a9103e2d49f134c9578 (diff)
PM: sleep: Fix suspend_test() at the TEST_CORE level
Commit a10ad1b10402 ("PM: suspend: Make pm_test delay interruptible by wakeup events") replaced mdelay() in suspend_test() with msleep() which does not work at the TEST_CORE test level that calls suspend_test() while running on one CPU with interrupts off. Address this by making suspend_test() check if the test level is suitable for using msleep() and use mdelay() otherwise. Fixes: a10ad1b10402 ("PM: suspend: Make pm_test delay interruptible by wakeup events") Reported-by: Sebastian Reichel <sebastian.reichel@collabora.com> Closes: https://lore.kernel.org/linux-pm/aUsAk0k1N9hw8IkY@venus/ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://patch.msgid.link/6251576.lOV4Wx5bFT@rafael.j.wysocki
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions