lkml.org 
[lkml]   [2012]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Video : Amba: Use in_interrupt() in clcdfb_sleep().
Date
From: Santosh Nayak <santoshprasadnayak@gmail.com>

Instead of "in_atomic()", we can use in_interrupt() to check whether
its an interrupt context.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
---
drivers/video/amba-clcd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c
index 0a2cce7..63c25da 100644
--- a/drivers/video/amba-clcd.c
+++ b/drivers/video/amba-clcd.c
@@ -39,7 +39,7 @@ static const char *clcd_name = "CLCD FB";
*/
static inline void clcdfb_sleep(unsigned int ms)
{
- if (in_atomic()) {
+ if (in_interrupt()) {
mdelay(ms);
} else {
msleep(ms);
--
1.7.4.4


\
 
 \ /
  Last update: 2012-03-11 14:19    [from the cache]
©2003-2011 Jasper Spaans