From: Chuck Ebbert <76306.1226@compuserve.com> Date: Fri, 29 Sep 2006 08:59:14 +0000 (-0700) Subject: [PATCH] spinlock_debug: don't recompute (jiffies_per_loop * HZ) in spinloop X-Git-Tag: v2.6.19-rc1~818 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c22f008ba226e2ff25ee1a56abd9c5fd355828fc;p=pandora-kernel.git [PATCH] spinlock_debug: don't recompute (jiffies_per_loop * HZ) in spinloop In spinlock_debug.c, the spinloops call __delay() on every iteration. Because that is an external function, (jiffies_per_loop * HZ), the loop's iteration limit, gets recomputed every time. Caching it explicitly prevents that. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed