From: chenxing Date: Thu, 14 Jun 2012 10:22:16 +0000 (+0800) Subject: rk30:sdk: fix gpu round frequency error when the same rate X-Git-Tag: firefly_0821_release~9091 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=046d3d9157339fcc6eac05056012c45b90007ae3;p=firefly-linux-kernel-4.4.55.git rk30:sdk: fix gpu round frequency error when the same rate --- diff --git a/arch/arm/mach-rk30/clock_data.c b/arch/arm/mach-rk30/clock_data.c index b69c9251f1b0..4633144d4b57 100644 --- a/arch/arm/mach-rk30/clock_data.c +++ b/arch/arm/mach-rk30/clock_data.c @@ -406,6 +406,8 @@ static long clk_freediv_round_autosel_parents_rate(struct clk *clk, unsigned lon { u32 div; struct clk *p_clk; + if(clk->rate == rate) + return clk->rate; p_clk=get_freediv_parents_div(clk,rate,&div); if(!p_clk) return 0;