Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310261
b: refs/heads/master
c: 1f45f9d
h: refs/heads/master
i:
  310259: d57d223
v: v3
  • Loading branch information
Heiko Stübner authored and Florian Tobias Schandinat committed Apr 29, 2012
1 parent e8d0002 commit 0dcc1ea
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 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: 13f36e9ea0f1419039763e7ba947fccd7f4b5a41
refs/heads/master: 1f45f9dbb392f9ca0919e9cd2370ab66ae752ec8
4 changes: 4 additions & 0 deletions trunk/drivers/video/fb_defio.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ static int fb_deferred_io_mkwrite(struct vm_area_struct *vma,
/* protect against the workqueue changing the page list */
mutex_lock(&fbdefio->lock);

/* first write in this cycle, notify the driver */
if (fbdefio->first_io && list_empty(&fbdefio->pagelist))
fbdefio->first_io(info);

/*
* We want the page to remain locked from ->page_mkwrite until
* the PTE is marked dirty to avoid page_mkclean() being called
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/smscufx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ static int ufx_ops_open(struct fb_info *info, int user)

struct fb_deferred_io *fbdefio;

fbdefio = kmalloc(sizeof(struct fb_deferred_io), GFP_KERNEL);
fbdefio = kzalloc(sizeof(struct fb_deferred_io), GFP_KERNEL);

if (fbdefio) {
fbdefio->delay = UFX_DEFIO_WRITE_DELAY;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/udlfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ static int dlfb_ops_open(struct fb_info *info, int user)

struct fb_deferred_io *fbdefio;

fbdefio = kmalloc(sizeof(struct fb_deferred_io), GFP_KERNEL);
fbdefio = kzalloc(sizeof(struct fb_deferred_io), GFP_KERNEL);

if (fbdefio) {
fbdefio->delay = DL_DEFIO_WRITE_DELAY;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ struct fb_deferred_io {
struct mutex lock; /* mutex that protects the page list */
struct list_head pagelist; /* list of touched pages */
/* callback */
void (*first_io)(struct fb_info *info);
void (*deferred_io)(struct fb_info *info, struct list_head *pagelist);
};
#endif
Expand Down

0 comments on commit 0dcc1ea

Please sign in to comment.