Thread (14 messages) flat view 14 messages, 4 authors, 2012-03-11
STALE5303d

[PATCH] Video : Amba: Use in_interrupt() in clcdfb_sleep().

From: santosh nayak <hidden>
Date: 2012-03-11 13:15:46
Also in: kernel-janitors, lkml
Subsystem: framebuffer layer, the rest · Maintainers: Helge Deller, Linus Torvalds

From: Santosh Nayak <redacted>

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

Signed-off-by: Santosh Nayak <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help