summaryrefslogtreecommitdiffstats
path: root/kernel/backtracetest.c
diff options
context:
space:
mode:
authorPhil Carmody <ext-phil.2.carmody@nokia.com>2010-08-19 16:20:37 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-09-02 16:31:36 +0200
commit5333a3de3cdd739ec4f6d501f5f6d09bab7ff919 (patch)
tree3c3c2a746c219660f1401f1172d1bdfee3d8a931 /kernel/backtracetest.c
parentARM: 6340/1: module - additional unwind tables for exit/devexit sections (diff)
downloadlinux-5333a3de3cdd739ec4f6d501f5f6d09bab7ff919.tar.xz
linux-5333a3de3cdd739ec4f6d501f5f6d09bab7ff919.zip
ARM: 6341/1: unwind - optimise linked-list searches for modules
With several sections per module, and dozens of modules, the searches down the linked list of sections would dominate the lookup time, dwarfing any savings from the binary search within the section. A simple move-to-front optimisation exploits the commonality of the code paths taken, and in simple real-world tests reduces the number of steps in the search to barely more than 1. Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions