RE: Optimize task_thread_info()

From: Chen, Kenneth W <>
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!!;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 <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
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