aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2014-04-07 15:38:15 -0700
committerSimon Shields <keepcalm444@gmail.com>2016-06-12 21:20:02 +1000
commite6e0680d6346a62f42724e15a193eb5d5a23be0d (patch)
tree8f61dd717a04b31a3a906cd04b2c11582b27bbfa /drivers/cpuidle
parent7db9d9ddd367aa63c90dd88cde271c9e2a9dcebf (diff)
downloadkernel_samsung_smdk4412-e6e0680d6346a62f42724e15a193eb5d5a23be0d.zip
kernel_samsung_smdk4412-e6e0680d6346a62f42724e15a193eb5d5a23be0d.tar.gz
kernel_samsung_smdk4412-e6e0680d6346a62f42724e15a193eb5d5a23be0d.tar.bz2
zram: add set_max_streams knob
This patch allows to change max_comp_streams on initialised zcomp. Introduce zcomp set_max_streams() knob, zcomp_strm_multi_set_max_streams() and zcomp_strm_single_set_max_streams() callbacks to change streams limit for zcomp_strm_multi and zcomp_strm_single, accordingly. set_max_streams for single steam zcomp does nothing. If user has lowered the limit, then zcomp_strm_multi_set_max_streams() attempts to immediately free extra streams (as much as it can, depending on idle streams availability). Note, this patch does not allow to change stream 'policy' from single to multi stream (or vice versa) on already initialised compression backend. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Acked-by: Minchan Kim <minchan@kernel.org> Cc: Jerome Marchand <jmarchan@redhat.com> Cc: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions