diff --git a/init/Kconfig b/init/Kconfig index 3b2fa6f27c68aa..a2020c54bdcfbc 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -148,6 +148,7 @@ config ZEN_INTERACTIVE --- Virtual Memory Subsystem --------------------------- Background-reclaim hugepages...: no -> yes + MG-LRU minimum cache TTL.......: 0 -> 1000 ms config BROKEN bool diff --git a/mm/vmscan.c b/mm/vmscan.c index 9b232d6aa5033c..b3dbb1b9e5e7b5 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -3968,7 +3968,11 @@ static bool lruvec_is_reclaimable(struct lruvec *lruvec, struct scan_control *sc } /* to protect the working set of the last N jiffies */ +#ifdef CONFIG_ZEN_INTERACTIVE +static unsigned long lru_gen_min_ttl __read_mostly = HZ; +#else static unsigned long lru_gen_min_ttl __read_mostly; +#endif static void lru_gen_age_node(struct pglist_data *pgdat, struct scan_control *sc) {