Skip to content

Use this_cpu_ops

Christoph Lameter lkml 1 version Applied

Status from this message: applied to percpu#for-next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 20 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11percpucounter: Optimize __percpu_counter_add a bit through the use of this_cpu() options.lib/percpu_counter.c+3 -51 reply
2/11vmstat: Optimize zone counter modifications through the use of this cpu operationsmm/vmstat.c+32 -241 reply
3/11x86: Use this_cpu_ops to optimize codearch/x86/include/asm/debugreg.h arch/x86/kernel/apic/io_apic.c arch/x86/kernel/apic/nmi.c +12 more+56 -610 replies
4/11x86: Use this_cpu_ops for current_cpu_data accessesarch/x86/kernel/cpu/cpufreq/powernow-k8.c arch/x86/kernel/cpu/intel_cacheinfo.c arch/x86/kernel/smpboot.c+7 -714 replies
5/11core: Replace __get_cpu_var with __this_cpu_read if not used for an address.include/asm-generic/irq_regs.h include/linux/elevator.h include/linux/kernel_stat.h +10 more+61 -675 replies
6/11drivers: Replace __get_cpu_var with __this_cpu_read if not used for an address.drivers/acpi/processor_idle.c drivers/cpuidle/cpuidle.c drivers/s390/cio/cio.c +1 more+7 -71 reply
7/11kprobes: Use this_cpu_opsarch/x86/kernel/kprobes.c include/linux/kprobes.h kernel/kprobes.c+13 -131 reply
8/11Fakekey: Simplify speakup_fake_key_pressed through this_cpu_opsdrivers/staging/speakup/fakekey.c+1 -61 reply
9/11Connector: Use this_cpu operationsdrivers/connector/cn_proc.c+3 -22 replies
10/11fs: Use this_cpu_xx operations in buffer.cfs/buffer.c+18 -191 reply
11/11Xen: Use this_cpu_opsarch/x86/xen/enlighten.c arch/x86/xen/multicalls.h arch/x86/xen/spinlock.c +2 more+15 -150 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchPekka EnbergTejun HeoMathieu Desnoyers
1/11R-b R-b R-b
2/11R-b
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Use cpuops V1 00/11] Use this_cpu_ops

Use the this_cpu_ops in various parts of the kernel.

This patchset does not require any upgrade of the percpu infrastructure. The patches included here are simple replacements of operations on percpu variables with the more efficient and compact code provide by this_cpu_ops.

These patches can be individually applied and are not depending on any other patches. I would suggest they go through Tejun's percpu tree if they are not picked up by the maintainers of the subsystems affected.