From 2f3a3e08a6b00edc678172dd2dc1d36f64c10835 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Tue, 2 Aug 2011 18:47:27 +0800 Subject: [PATCH] regulator: rk29-pwm: use usleep_range to sleep, make cpu freq change more faster --- drivers/regulator/rk29-pwm-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rk29-pwm-regulator.c b/drivers/regulator/rk29-pwm-regulator.c index 016ceada24a5..aa49b3f799cc 100644 --- a/drivers/regulator/rk29-pwm-regulator.c +++ b/drivers/regulator/rk29-pwm-regulator.c @@ -101,7 +101,7 @@ static int pwm_set_rate(struct pwm_platform_data *pdata,int nHz,u32 rate) return -1; } - msleep(10); + usleep_range(10*1000, 10*1000); return (0); -- 2.34.1