Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15101
b: refs/heads/master
c: 4743484
h: refs/heads/master
i:
  15099: 3eea8e8
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Dec 13, 2005
1 parent 726f83a commit 2ad7efe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56f0d64de80733bda54d1cfa7ac0c736ab2de33b
refs/heads/master: 4743484718e1d710321f24f8ef7d0124a48291b3
5 changes: 4 additions & 1 deletion trunk/drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2191,11 +2191,14 @@ static int fbcon_blank(struct vc_data *vc, int blank, int mode_switch)
ops->graphics = 1;

if (!blank) {
if (info->fbops->fb_save_state)
info->fbops->fb_save_state(info);
var.activate = FB_ACTIVATE_NOW | FB_ACTIVATE_FORCE;
fb_set_var(info, &var);
ops->graphics = 0;
ops->var = info->var;
}
} else if (info->fbops->fb_restore_state)
info->fbops->fb_restore_state(info);
}

if (!fbcon_is_inactive(vc, info)) {
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/linux/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@ struct fb_ops {

/* perform fb specific mmap */
int (*fb_mmap)(struct fb_info *info, struct file *file, struct vm_area_struct *vma);

/* save current hardware state */
void (*fb_save_state)(struct fb_info *info);

/* restore saved state */
void (*fb_restore_state)(struct fb_info *info);
};

#ifdef CONFIG_FB_TILEBLITTING
Expand Down

0 comments on commit 2ad7efe

Please sign in to comment.