From: Subbaiah Venkata Date: Wed, 17 Oct 2007 06:27:06 +0000 (-0700) Subject: lib/sort.c optimization X-Git-Tag: v2.6.24-rc1~694 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=995e4286a047b32aebf8ce540908edb7fbd93f76;p=pandora-kernel.git lib/sort.c optimization Hello, I fixed and tested a small bug in lib/sort.c file, heap sort function. The fix avoids unnecessary swap of contents when i is 0 (saves few loads and stores), which happens every time sort function is called. I felt the fix is worth bringing it to your attention given the importance and frequent use of the sort function. Acked-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed