From 071a568a4d89c0bff7dd5e6a4906066be317db2c Mon Sep 17 00:00:00 2001 From: Juha Yrjola Date: Tue, 14 Feb 2006 17:23:36 +0200 Subject: [PATCH] ads7846: make the suspend function sleep instead of busy poll MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ads7846_suspend was busily polling for a couple of variables, which never get a chance to change state unless kernel pre-emption is enabled. Use msleep instead. Signed-off-by: Juha Yrjölä --- drivers/input/touchscreen/ads7846.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 0aedb93c4e0..6da83482f5b 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -443,7 +443,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); } } -- 2.41.1