diff options
| author | Takashi Iwai <[email protected]> | 2018-11-23 18:38:13 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2019-03-27 16:15:01 +0000 |
| commit | 734b5a0bbdf43518e6739c8156a985e385e557fe (patch) | |
| tree | cfadbf71e5579f10a6ae526f31923348a9007ae0 /sound/core/timer.c | |
| parent | ALSA: emux: Add support of loading GUS-patch (diff) | |
| download | kernel-734b5a0bbdf43518e6739c8156a985e385e557fe.tar.gz kernel-734b5a0bbdf43518e6739c8156a985e385e557fe.zip | |
ALSA: Replace snd_malloc_pages() and snd_free_pages() with standard helpers, take#2
snd_malloc_pages() and snd_free_pages() are merely thin wrappers of
the standard page allocator / free functions. Even the arguments are
compatible with some standard helpers, so there is little merit of
keeping these wrappers.
This patch replaces the all existing callers of snd_malloc_pages() and
snd_free_pages() with the direct calls of the standard helper
functions. In this version, we use a recently introduced one,
alloc_pages_exact(), which suits better than the old
snd_malloc_pages() implementation for our purposes. Then we can avoid
the waste of pages by alignment to power-of-two.
Since alloc_pages_exact() does split pages, we need no longer
__GFP_COMP flag; or better to say, we must not pass __GFP_COMP to
alloc_pages_exact(). So the former unconditional addition of
__GFP_COMP flag in snd_malloc_pages() is dropped, as well as in most
other places.
Reviewed-by: Takashi Sakamoto <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions
