RE: Optimize task_thread_info()

From: Chen, Kenneth W <kenneth.w.chen_at_intel.com>
Date: 2006-01-25 20:33:10
Chen, Kenneth wrote on Tuesday, January 24, 2006 6:34 PM
> Kernel scheduler uses thread_info.cpu heavily, task_cpu(p) is use just
> about in every hot scheduler functions.  Since thread_info structure
> always has constant offset from task_struct, access to member variable
> of thread_info can be as simple as adding a constant to task_struct
> pointer.  Optimize ia64 task_thread_info() to use constant offset. This
> saves a memory indirection whenever thread_info structure is used.

Nevermind, someone beat me to it by stunning 12 days!!

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ab03591db110e8d195d381a68692eb37da981cdf

[PATCH] ia64: task_thread_info()

on ia64 thread_info is at the constant offset from task_struct and stack
is embedded into the same beast.  Set __HAVE_THREAD_FUNCTIONS, made
task_thread_info() just add a constant.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Jan 25 20:33:44 2006

This archive was generated by hypermail 2.1.8 : 2006-01-25 20:33:52 EST