projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7018a
)
Input: ads7846 - use msleep() instead of udelay() in suspend
author
Juha Yrjola
<juha.yrjola@nokia.com>
Wed, 12 Apr 2006 03:42:25 +0000
(23:42 -0400)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Wed, 12 Apr 2006 03:42:25 +0000
(23:42 -0400)
Sometimes a polling loop had a hard time changing state without
pre-emption enabled. Use msleep instead, it's better anyway.
Signed-off-by: Juha Yrjola <juha.yrjola@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ads7846.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/ads7846.c
b/drivers/input/touchscreen/ads7846.c
index
8670cd1
..
bdec112
100644
(file)
--- a/
drivers/input/touchscreen/ads7846.c
+++ b/
drivers/input/touchscreen/ads7846.c
@@
-449,7
+449,7
@@
ads7846_suspend(struct spi_device *spi, pm_message_t message)
while (ts->pendown || ts->pending) {
spin_unlock_irqrestore(&ts->lock, flags);
-
udelay(10
);
+
msleep(1
);
spin_lock_irqsave(&ts->lock, flags);
}
}