From: Chen, Kenneth W Date: Fri, 9 Sep 2005 20:02:02 +0000 (-0700) Subject: [PATCH] Prefetch kernel stacks to speed up context switch X-Git-Tag: v2.6.14-rc1~454 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=383f2835eb9afb723af71850037b2f074ac9db60;p=pandora-kernel.git [PATCH] Prefetch kernel stacks to speed up context switch For architecture like ia64, the switch stack structure is fairly large (currently 528 bytes). For context switch intensive application, we found that significant amount of cache misses occurs in switch_to() function. The following patch adds a hook in the schedule() function to prefetch switch stack structure as soon as 'next' task is determined. This allows maximum overlap in prefetch cache lines for that structure. Signed-off-by: Ken Chen Cc: Ingo Molnar Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed