diff options
author | Tejun Heo <tj@kernel.org> | 2014-09-02 20:46:01 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-02 20:46:01 +0200 |
commit | dca496451bddea9aa87b7510dc2eb413d1a19dfd (patch) | |
tree | c1d926663786fd919d3a9d19659ce80696d7558f /sound/drivers/pcm-indirect2.c | |
parent | percpu: remove @may_alloc from pcpu_get_pages() (diff) | |
download | linux-dca496451bddea9aa87b7510dc2eb413d1a19dfd.tar.xz linux-dca496451bddea9aa87b7510dc2eb413d1a19dfd.zip |
percpu: move common parts out of pcpu_[de]populate_chunk()
percpu-vm and percpu-km implement separate versions of
pcpu_[de]populate_chunk() and some part which is or should be common
are currently in the specific implementations. Make the following
changes.
* Allocate area clearing is moved from the pcpu_populate_chunk()
implementations to pcpu_alloc(). This makes percpu-km's version
noop.
* Quick exit tests in pcpu_[de]populate_chunk() of percpu-vm are moved
to their respective callers so that they are applied to percpu-km
too. This doesn't make any meaningful difference as both functions
are noop for percpu-km; however, this is more consistent and will
help implementing atomic allocation support.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'sound/drivers/pcm-indirect2.c')
0 files changed, 0 insertions, 0 deletions