Skip to content

xics.c and time.c optimizations

Milton Miller linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6push down or eliminate smp_processor_id in xicsarch/powerpc/platforms/pseries/xics.c arch/powerpc/platforms/pseries/xics.h+29 -330 replies
2/6init_decrementer_clockevent can be static __initarch/powerpc/kernel/time.c+1 -20 replies
3/6use __get_cpu_var in time.carch/powerpc/kernel/time.c+2 -20 replies
4/6timer interrupt: use a struct for two per_cpu varablesarch/powerpc/kernel/time.c+12 -80 replies
5/6depend on ->initialized in calc_steal_timearch/powerpc/kernel/time.c+1 -30 replies
6/6optimize account_system_vtimearch/powerpc/kernel/time.c+13 -81 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] xics.c and time.c optimizations

The following patches against for-2.2.25 do some optimizations related to the usage smp_processor_id().

The xics one has been tested on SMP on 2.6.23, and still applies cleanly.

In time.c I started with the per_cpu to __get_cpu_var transformations which affect ppc64 (the calls were added in 2.6.24), and from there went looking for redundant global accesses from objdump -d --reloc. I primarly looked at the pseries_defconfig and checked the results on chrp32_defconfig.

Optimization results were checked on debian using

gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

milton