Navigation Menu

Skip to content

Commit

Permalink
HACK: block fbearlysuspend to not break androids crt-off animation
Browse files Browse the repository at this point in the history
  • Loading branch information
codeworkx authored and Daz Jones committed Sep 16, 2013
1 parent 073a12a commit 9c6c746
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernel/power/fbearlysuspend.c
Expand Up @@ -13,6 +13,7 @@
*
*/

#include <linux/delay.h>
#include <linux/earlysuspend.h>
#include <linux/module.h>
#include <linux/wait.h>
Expand All @@ -33,6 +34,10 @@ static void stop_drawing_early_suspend(struct early_suspend *h)
int ret;
unsigned long irq_flags;

/* FIXME: earlysuspend breaks androids CRT-off animation
* Sleep a little bit to get it played properly */
msleep(500);

spin_lock_irqsave(&fb_state_lock, irq_flags);
fb_state = FB_STATE_REQUEST_STOP_DRAWING;
spin_unlock_irqrestore(&fb_state_lock, irq_flags);
Expand Down

0 comments on commit 9c6c746

Please sign in to comment.