diff options
author | Fenghua Yu <fenghua.yu@intel.com> | 2007-02-13 01:27:10 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2007-03-08 01:27:09 +0100 |
commit | 3bc207d2b72ea0e6927cccc653c2dc8be593f89f (patch) | |
tree | 6227ca004edf20809668ce0899e1835e075842bc /arch/ia64/kernel/asm-offsets.c | |
parent | [IA64] remove duplicate declaration of efi_initialize_iomem_resources (diff) | |
download | linux-3bc207d2b72ea0e6927cccc653c2dc8be593f89f.tar.xz linux-3bc207d2b72ea0e6927cccc653c2dc8be593f89f.zip |
[IA64] fsys_getcpu for IA64
On 1.6GHz Montectio Tiger4, the following performance data is measured with
kernel built with defconfig which has NUMA configured:
Fastest sys_getcpu: 502 itc counts.
Fastest fsys_getcpu: 28 itc counts.
fsys_getcpu performance is largly impacted by whether data (node_to_cpu_map
etc) is in cache. It can take fsys_getcpu up to ~150 itc counts in cold
cache case.
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/asm-offsets.c')
-rw-r--r-- | arch/ia64/kernel/asm-offsets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ia64/kernel/asm-offsets.c b/arch/ia64/kernel/asm-offsets.c index 75a2a2c12258..2236fabbb3c6 100644 --- a/arch/ia64/kernel/asm-offsets.c +++ b/arch/ia64/kernel/asm-offsets.c @@ -35,6 +35,7 @@ void foo(void) BLANK(); DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); + DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); BLANK(); |