From: Mark Brown Date: Fri, 9 Dec 2011 12:55:03 +0000 (+0800) Subject: i2c: i2c-s3c2410: Add a cpu_relax() to busy wait for bus idle X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37de03ea1246c8280f6c8c6f61ea98973e9b9448;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git i2c: i2c-s3c2410: Add a cpu_relax() to busy wait for bus idle Be a bit more friendly. Signed-off-by: Mark Brown Signed-off-by: Ben Dooks --- diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 2754cef86a06..37b2de106808 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -534,6 +534,7 @@ static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c, /* first, try busy waiting briefly */ do { + cpu_relax(); iicstat = readl(i2c->regs + S3C2410_IICSTAT); } while ((iicstat & S3C2410_IICSTAT_START) && --spins);