OSDN Git Service

mm/vmalloc.c: fix align value calculation error
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / include / linux / simple_lmk.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2019 Sultan Alsawaf <sultan@kerneltoast.com>.
4  */
5 #ifndef _SIMPLE_LMK_H_
6 #define _SIMPLE_LMK_H_
7
8 struct mm_struct;
9
10 #ifdef CONFIG_ANDROID_SIMPLE_LMK
11 void simple_lmk_decide_reclaim(int kswapd_priority);
12 void simple_lmk_stop_reclaim(void);
13 void simple_lmk_mm_freed(struct mm_struct *mm);
14 #else
15 static inline void simple_lmk_decide_reclaim(int kswapd_priority)
16 {
17 }
18 static inline void simple_lmk_stop_reclaim(void)
19 {
20 }
21 static inline void simple_lmk_mm_freed(struct mm_struct *mm)
22 {
23 }
24 #endif
25
26 #endif /* _SIMPLE_LMK_H_ */