]> git.baikalelectronics.ru Git - kernel.git/commit
nds32: Disable local irq before calling cpu_dcache_wb_page in copy_user_highpage
authorVincent Chen <vincentc@andestech.com>
Mon, 14 May 2018 10:56:35 +0000 (18:56 +0800)
committerGreentime Hu <greentime@andestech.com>
Wed, 23 May 2018 05:26:22 +0000 (13:26 +0800)
commitf98b8f751051f13cdd352f364130463c888c663a
treed91740ec7b04af9b924c205ccb8876dcb9c3f442
parenta9826adc546a7b9c8b462df1bcb9bd023c4093ac
nds32: Disable local irq before calling cpu_dcache_wb_page in copy_user_highpage

In order to ensure that all data in source page has been written back
to memory before copy_page, the local irq shall be disabled before
calling cpu_dcache_wb_page(). In addition, removing unneeded page
invalidation for 'to' page.

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Reviewed-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/mm/cacheflush.c