summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGanesh Mahendran <opensource.ganesh@gmail.com>2018-03-05 19:07:06 +0800
committerGanesh Mahendran <opensource.ganesh@gmail.com>2019-01-29 06:30:30 +0000
commitbaff465f668aff2d4b5b410ad28a40138b423323 (patch)
tree4ef4d88a1bed74ff47e3ba7d010bbdecbf247b34 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfad9571dc59e822d6d59ad163b55799de9d1bc34 (diff)
continue read file when returned count > 0
In android, we met a lot of watchdog timeout which caused by read file "/d/wakeup_sources". The root cause is that in kernel side wakeup.c, it uses single_open() interface to show the stats. But single_open() interface requires that the whole output must fit into a single buffer(physical continuous). This will lead to timeout when system memory is not in a good situation. Problem in kenrel side has been merged in [1]. Then kernel will return max a page bytes to user space. So in KernelWakelockReader, we need to read again when returned count > 0. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.0-rc4&id=00ee22c28915d111ba415750a3311d7678fd1206 Change-Id: If7886514c609c8d6338532c67c1cee79f2754ab1 Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions