summaryrefslogtreecommitdiff
path: root/kernel/locking/mutex-debug.c
diff options
context:
space:
mode:
authorDeepak Kumar <dkumar@codeaurora.org>2017-06-20 16:59:51 +0530
committerDeepak Kumar <dkumar@codeaurora.org>2017-06-30 20:44:10 +0530
commit40b830cd5e450ddf1e96bc1eb6061c1c8880ae16 (patch)
tree118c1b1c838dfba20428917adc041cd8468e7e0d /kernel/locking/mutex-debug.c
parentc1a5075d60955f6e4a15ce94aebd746c27684466 (diff)
msm: kgsl: Do not memset pages to zero while adding to pool
Doing a memset to zero while adding a page to pool is not efficient as the page added to the pool can be returned to system in case shrinker kicks in. In this scenario, time spent in zeroing the page is a waste. Instead of zeroing the page while adding it to pool zero the page when it is taken from the pool. This helps in reducing the time taken to free big chunk of memory. Also, allocation time shouldn't be a problem as zeroing of page anyways happens during allocation in case it is allocated from system. Change-Id: I41ab2cb88fb4fd9854d2cc9a45bb60fc7013286a Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions