summaryrefslogtreecommitdiffstats
path: root/mm/Kconfig
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2022-08-25 18:41:29 +0200
committerThomas Gleixner <tglx@linutronix.de>2022-09-19 14:35:08 +0200
commitc7e0b3d088717d148707cd6fcb12f97c6fd961c1 (patch)
tree5b2a165a761595d880b05d9478bf78ee4a201e5a /mm/Kconfig
parente575d401583273a7ac5dfb27520e41c821e81816 (diff)
downloadlinux-stable-c7e0b3d088717d148707cd6fcb12f97c6fd961c1.tar.gz
linux-stable-c7e0b3d088717d148707cd6fcb12f97c6fd961c1.tar.bz2
linux-stable-c7e0b3d088717d148707cd6fcb12f97c6fd961c1.zip
mm/compaction: Get rid of RT ifdeffery
Move the RT dependency for the initial value of sysctl_compact_unevictable_allowed into Kconfig. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220825164131.402717-7-bigeasy@linutronix.de
Diffstat (limited to 'mm/Kconfig')
-rw-r--r--mm/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index 0331f1461f81..3897e924e40f 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -579,6 +579,12 @@ config COMPACTION
it and then we would be really interested to hear about that at
linux-mm@kvack.org.
+config COMPACT_UNEVICTABLE_DEFAULT
+ int
+ depends on COMPACTION
+ default 0 if PREEMPT_RT
+ default 1
+
#
# support for free page reporting
config PAGE_REPORTING