radeonfb: do not blank during swsusp snapshot

From: Pavel Machek
Date: Sat Aug 28 2004 - 16:43:25 EST


Hi!

With display blanked, it is hard to debug anything. And display
blanking is not really needed there... Does it look okay?

Pavel

--- clean-mm.middle/drivers/video/aty/radeon_pm.c 2004-08-15 19:15:01.000000000 +0200
+++ linux-mm/drivers/video/aty/radeon_pm.c 2004-08-28 23:26:46.000000000 +0200
@@ -880,12 +880,14 @@
radeon_engine_idle();
}

- /* Blank display and LCD */
- radeonfb_blank(VESA_POWERDOWN, info);
-
- /* Sleep */
- rinfo->asleep = 1;
- rinfo->lock_blank = 1;
+ if (system_state != SYSTEM_SNAPSHOT) {
+ /* Blank display and LCD */
+ radeonfb_blank(VESA_POWERDOWN, info);
+
+ /* Sleep */
+ rinfo->asleep = 1;
+ rinfo->lock_blank = 1;
+ }

/* Suspend the chip to D2 state when supported
*/

--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/