mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
nommu: there is no mlock() for NOMMU, so don't provide the bits
The mlock() facility does not exist for NOMMU since all mappings are effectively locked anyway, so we don't make the bits available when they're not useful. Signed-off-by: David Howells <[email protected]> Reviewed-by: KOSAKI Motohiro <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Greg Ungerer <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Lee Schermerhorn <[email protected]> Cc: Enrik Berkhan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7ca43e7564
commit
33925b25d2
3 changed files with 26 additions and 10 deletions
|
|
@ -214,5 +214,13 @@ config UNEVICTABLE_LRU
|
|||
will use one page flag and increase the code size a little,
|
||||
say Y unless you know what you are doing.
|
||||
|
||||
config HAVE_MLOCK
|
||||
bool
|
||||
default y if MMU=y
|
||||
|
||||
config HAVE_MLOCKED_PAGE_BIT
|
||||
bool
|
||||
default y if HAVE_MLOCK=y && UNEVICTABLE_LRU=y
|
||||
|
||||
config MMU_NOTIFIER
|
||||
bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue