From patchwork Fri Sep 10 10:47:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Carmody X-Patchwork-Id: 168642 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8AAwmps002185 for ; Fri, 10 Sep 2010 10:58:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752630Ab0IJK6s (ORCPT ); Fri, 10 Sep 2010 06:58:48 -0400 Received: from 87-119-183-14.tll.elisa.ee ([87.119.183.14]:1063 "EHLO bazspaz.fatphil.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752243Ab0IJK6s (ORCPT ); Fri, 10 Sep 2010 06:58:48 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 10 Sep 2010 10:58:49 +0000 (UTC) X-Greylist: delayed 590 seconds by postgrey-1.27 at vger.kernel.org; Fri, 10 Sep 2010 06:58:48 EDT Received: from localhost (spaztop.fatphil.org [192.168.0.199]) by bazspaz.fatphil.org (Postfix) with ESMTP id C8DEC16935; Fri, 10 Sep 2010 13:48:55 +0300 (EEST) From: Phil Carmody To: kyle@mcmartin.ca, deller@gmx.de, jejb@parisc-linux.org Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] PARISC: unwind - optimise linked-list searches for modules Date: Fri, 10 Sep 2010 13:47:59 +0300 Message-Id: <1284115679-23928-1-git-send-email-ext-phil.2.carmody@nokia.com> X-Mailer: git-send-email 1.7.2.rc1.37.gf8c40 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org 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;