]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - mm/percpu.c
percpu: speed alloc_pcpu_area() up
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 7 Mar 2014 01:52:32 +0000 (20:52 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 7 Mar 2014 12:52:26 +0000 (07:52 -0500)
commit3d331ad74fa33f0b14a46cf0de8358012d3c1500
tree17b8d8615001e4de1a7a3a1e86418485fd4179d1
parent723ad1d90b5663ab623bb3bfba3e4ee7101795d7
percpu: speed alloc_pcpu_area() up

If we know that first N areas are all in use, we can obviously skip
them when searching for a free one.  And that kind of hint is very
easy to maintain.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c