]> git.baikalelectronics.ru Git - kernel.git/commit
arc: Add our own implementation of fb_pgprotect()
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Mon, 28 Mar 2016 11:36:38 +0000 (14:36 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 7 Apr 2016 09:29:09 +0000 (14:59 +0530)
commit1295e0dc4c3a29501af561981e8fac9ee43f0396
tree52b6bbcef2d992c6127ab156ff59567dfae780f9
parent93c4e199c7eb1ab24c402178e09ce6039da0e28e
arc: Add our own implementation of fb_pgprotect()

During mmaping of frame-buffer pages to user-space
fb_protect() is called to set proper page settings.

In case of ARC we need to mark pages that are mmaped to
user as uncached because of 2 reasons:
 * Huge amount of data if passing through data cache will
   thrash cache a lot making cache almost useless for other
   less traffic hungry processes.
 * Data written by user in FB will be immediately available for
   hardware (such as PGU etc) without requirements to flush data
   cache regularly.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: linux-snps-arc@lists.infradead.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/fb.h [new file with mode: 0644]