CLKDEV: remove extra clk_find iterations
PATCH 1/1 CLKDEV: remove extra clk_find iterations
--- arch/arm/common/clkdev.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
=======================================
arch/arm/common/clkdev.c +0 -0
--- a/arch/arm/common/clkdev.c
+++ b/arch/arm/common/clkdev.c
@@ -55,7 +55,10 @@
static?struct?clk?*clk_find(const?char?*dev_id,?const?char?*con_id) ? ? if?(match?==?0)
? ? ? continue;
+? ? if?(match?==?3)
+? ? ? return?p->clk;
+
? ? if?(match?>?best)?{
? ? ? clk?=?p->clk;
? ? ? best?=?match;
-- 1.6.0.2
PATCH 1/1 CLKDEV: remove extra clk_find iterations
Quoted 1 line · Viresh KUMAR
Signed-off-by Viresh Kumar <[email protected]>
hmm, looks like your mailer has reformatted this message
and two, please add a useful description, what is going on here?
Quoted 36 lines
--- arch/arm/common/clkdev.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)=======================================
arch/arm/common/clkdev.c +4
-2--- a/arch/arm/common/clkdev.c +++ b/arch/arm/common/clkdev.c@@ -55,7 +55,10 @@ static?struct?clk?*clk_find(const?char?*dev_id,?const?char?*con_id) ? ? if?(match?==?0) ? ? ? continue; +? ? if?(match?==?3) +? ? ? return?p->clk; + ? ? if?(match?>?best)?{ ? ? ? clk?=?p->clk; ? ? ? best?=?match; -- 1.6.0.2_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 5 lines
-- Ben Q: What's a light-year? A: One-third less calories than a regular year.
PATCH 1/1 CLKDEV: remove extra clk_find iterations
Ben,
Quoted 5 lines · Ben Dooks
Quoted 1 line · Viresh KUMAR
Signed-off-by Viresh Kumar <[email protected]>hmm, looks like your mailer has reformatted this message
I will send correct patch again.
Quoted 2 lines
and two, please add a useful description, what is going on here?
will add more description this time.
viresh.