lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 27 Feb 2010 14:05:34 +0530
From:	Viresh KUMAR <viresh.kumar@...com>
To:	linux-arm-kernel@...ts.infradead.org, linux@....linux.org.uk
Subject: [PATCH] CLKDEV: remove extra clk_find iterations

Signed-off-by: Viresh Kumar <viresh.kumar@...com>
---
 arch/arm/common/clkdev.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

=======================================

diff --git a/arch/arm/common/clkdev.c b/arch/arm/common/clkdev.c
index aae5bc0..736dfba 100644

--- 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





--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ