patch-2.3.43 linux/drivers/video/chipsfb.c
Next file: linux/drivers/video/controlfb.c
Previous file: linux/drivers/video/atyfb.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Feb 9 19:43:57 2000
- Orig file:
v2.3.42/linux/drivers/video/chipsfb.c
- Orig date:
Fri Oct 22 13:21:51 1999
diff -u --recursive --new-file v2.3.42/linux/drivers/video/chipsfb.c linux/drivers/video/chipsfb.c
@@ -727,9 +727,20 @@
int nb = p->var.yres * p->fix.line_length;
switch (when) {
+ case PBOOK_SLEEP_REQUEST:
+ p->save_framebuffer = vmalloc(nb);
+ if (p->save_framebuffer == NULL)
+ return PBOOK_SLEEP_REFUSE;
+ break;
+ case PBOOK_SLEEP_REJECT:
+ if (p->save_framebuffer) {
+ vfree(p->save_framebuffer);
+ p->save_framebuffer = 0;
+ }
+ break;
+
case PBOOK_SLEEP_NOW:
chipsfb_blank(1, (struct fb_info *)p);
- p->save_framebuffer = vmalloc(nb);
if (p->save_framebuffer)
memcpy(p->save_framebuffer,
p->frame_buffer, nb);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)