diff mbox

[1/1] PARISC: unwind - optimise linked-list searches for modules

Message ID 1284115679-23928-1-git-send-email-ext-phil.2.carmody@nokia.com (mailing list archive)
State Accepted
Headers show

Commit Message

Phil Carmody Sept. 10, 2010, 10:47 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/parisc/kernel/unwind.c b/arch/parisc/kernel/unwind.c
index d58eac1..76ed62e 100644
--- a/arch/parisc/kernel/unwind.c
+++ b/arch/parisc/kernel/unwind.c
@@ -80,8 +80,11 @@  find_unwind_entry(unsigned long addr)
 			if (addr >= table->start && 
 			    addr <= table->end)
 				e = find_unwind_entry_in_table(table, addr);
-			if (e)
+			if (e) {
+				/* Move-to-front to exploit common traces */
+				list_move(&table->list, &unwind_tables);
 				break;
+			}
 		}
 
 	return e;