aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorVincent Chen <[email protected]>2018-04-24 07:08:46 +0000
committerGreentime Hu <[email protected]>2018-05-23 05:26:22 +0000
commitefcc4ea872edaeded28245d9b2ca8b9d8181b7cf (patch)
treedbe604d6797be13de20072e512f0af99cdc7afce /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentnds32: Fix the unaligned access handler (diff)
downloadkernel-efcc4ea872edaeded28245d9b2ca8b9d8181b7cf.tar.gz
kernel-efcc4ea872edaeded28245d9b2ca8b9d8181b7cf.zip
nds32: Correct flush_dcache_page function
1. Disable local irq before d-cache write-back and invalidate. The cpu_dcache_wbinval_page function is composed of d-cache write-back and invalidate. If the local irq is enabled when calling cpu_dcache_wbinval_page, the content of d-cache is possibly updated between write-back and invalidate. In this case, the updated data will be dropped due to the following d-cache invalidation. Therefore, we disable the local irq before calling cpu_dcache_wbinval_page. 2. Correct the data write-back for page aliasing case. Only the page whose (page->index << PAGE_SHIFT) is located at the same page color as page_address(page) needs to execute data write-back in flush_dcache_page function. Signed-off-by: Vincent Chen <[email protected]> Reviewed-by: Greentime Hu <[email protected]> Signed-off-by: Greentime Hu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions