[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210622083844.13892-1-pingshuo@uniontech.com>
Date: Tue, 22 Jun 2021 16:38:44 +0800
From: pingshuo <pingshuo@...ontech.com>
To: rjw@...ysocki.net
Cc: len.brown@...el.com, pavel@....cz, gregkh@...uxfoundation.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
pingshuo <pingshuo@...ontech.com>
Subject: [PATCH] hibernation:stop resume screen during hibernation
The display will be woken up during hibernation,
if the computer equipment is poor, it will cause the screen to flicker.
Skip to reusme the display devices in "thaw".
Signed-off-by: pingshuo <pingshuo@...ontech.com>
---
drivers/base/power/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index c7f51c94969d..376b2eca65c7 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -707,7 +707,7 @@ static int dpm_resume_skip_display_devices(struct device *dev, pm_message_t stat
{
struct pci_dev *pci_test = to_pci_dev(dev);
if (state.event == PM_EVENT_THAW) {
- /*
+ /*
*Filter out the display devices
*/
if((pci_test && ((pci_test->class&DISPLAY_PCI_CLASS_VALID_BIT) == DISPLAY_PCI_CLASS))||(dev->driver&&dev->driver->name&&strncmp(dev->driver->name,"video",6)==0))
--
2.20.1
Powered by blists - more mailing lists